From 640698ba57adfa55dc294192720a68d52994d2a0 Mon Sep 17 00:00:00 2001 From: Joe Schutte Date: Mon, 3 Sep 2018 13:22:46 -0700 Subject: [PATCH] Fix compile error that clang caught. --- code/ObjFileImporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ObjFileImporter.cpp b/code/ObjFileImporter.cpp index cac0e8fa0..93d48ba16 100644 --- a/code/ObjFileImporter.cpp +++ b/code/ObjFileImporter.cpp @@ -216,7 +216,7 @@ void ObjFileImporter::CreateDataFromImport(const ObjFile::Model* pModel, aiScene unsigned int childCount = 0; for(size_t index = 0; index < pModel->m_Objects.size(); ++index) { - if(pModel->m_Objects[index] > 0) { + if(pModel->m_Objects[index]) { ++childCount; meshCount += (unsigned int)pModel->m_Objects[index]->m_Meshes.size(); }