Kim Kulling пре 10 година
родитељ
комит
3af8014055
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      code/XFileParser.cpp

+ 2 - 1
code/XFileParser.cpp

@@ -466,8 +466,9 @@ void XFileParser::ParseDataObjectMesh( Mesh* pMesh)
     for( unsigned int a = 0; a < numPosFaces; a++)
     {
         unsigned int numIndices = ReadInt();
-        if( numIndices < 3)
+        if( numIndices < 3) {
             ThrowException( boost::str( boost::format( "Invalid index count %1% for face %2%.") % numIndices % a));
+        }
 
         // read indices
         Face& face = pMesh->mPosFaces[a];