ソースを参照

Fix compile error that clang caught.

Joe Schutte 7 年 前
コミット
640698ba57
1 ファイル変更1 行追加1 行削除
  1. 1 1
      code/ObjFileImporter.cpp

+ 1 - 1
code/ObjFileImporter.cpp

@@ -216,7 +216,7 @@ void ObjFileImporter::CreateDataFromImport(const ObjFile::Model* pModel, aiScene
         unsigned int childCount = 0;
         unsigned int childCount = 0;
 
 
         for(size_t index = 0; index < pModel->m_Objects.size(); ++index) {
         for(size_t index = 0; index < pModel->m_Objects.size(); ++index) {
-            if(pModel->m_Objects[index] > 0) {
+            if(pModel->m_Objects[index]) {
                 ++childCount;
                 ++childCount;
                 meshCount += (unsigned int)pModel->m_Objects[index]->m_Meshes.size();
                 meshCount += (unsigned int)pModel->m_Objects[index]->m_Meshes.size();
             }
             }