INcreas readability.

pull/600/head
Kim Kulling 2015-07-03 19:00:21 +02:00
parent 001eef2a9f
commit 3af8014055
1 changed files with 2 additions and 1 deletions

View File

@ -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];