Explorar el Código

Merge pull request #54 from mjunix/patch-6

Simplify comparison
Peter Robinson hace 2 años
padre
commit
293aa0be8e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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." );