Browse Source

Simplify comparison

Johan Mattsson 2 years ago
parent
commit
2da2a02d12
1 changed files with 1 additions and 1 deletions
  1. 1 1
      engine/source/2d/sceneobject/SceneObject.cc

+ 1 - 1
engine/source/2d/sceneobject/SceneObject.cc

@@ -4029,7 +4029,7 @@ void SceneObject::onTamlCustomRead( const TamlCustomNodes& customNodes )
             }
             }
 
 
             // Is point count valid?
             // Is point count valid?
-            if ( pointCount == 0 || pointCount != 2 )
+            if ( pointCount != 2 )
             {
             {
                 // No, so warn.
                 // No, so warn.
                 Con::warnf( "SceneObject::onTamlCustomRead() - No points (or not two points) on edge collision shape." );
                 Con::warnf( "SceneObject::onTamlCustomRead() - No points (or not two points) on edge collision shape." );