From 3af8014055d4a5eff292019f8cb343d0142e72b8 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Fri, 3 Jul 2015 19:00:21 +0200 Subject: [PATCH] INcreas readability. --- code/XFileParser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/XFileParser.cpp b/code/XFileParser.cpp index 4cafe63a0..2da71f02c 100644 --- a/code/XFileParser.cpp +++ b/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];