ソースを参照

Simplify comparison

Johan Mattsson 2 年 前
コミット
2da2a02d12
1 ファイル変更1 行追加1 行削除
  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?
-            if ( pointCount == 0 || pointCount != 2 )
+            if ( pointCount != 2 )
             {
                 // No, so warn.
                 Con::warnf( "SceneObject::onTamlCustomRead() - No points (or not two points) on edge collision shape." );