diff --git a/code/ColladaParser.cpp b/code/ColladaParser.cpp index 9e68c9332..fb7cd298a 100644 --- a/code/ColladaParser.cpp +++ b/code/ColladaParser.cpp @@ -1952,7 +1952,7 @@ void ColladaParser::ReadIndexData( Mesh* pMesh) // small sanity check if (primType != Prim_TriFans && primType != Prim_TriStrips) - ai_assert(actualPrimitives == numPrimitives); + ai_assert(actualPrimitives == numPrimitives) // only when we're done reading all

tags (and thus know the final vertex count) can we commit the submesh subgroup.mNumFaces = actualPrimitives; diff --git a/include/assimp/ai_assert.h b/include/assimp/ai_assert.h index 1f946d6ec..eb6bf8e89 100644 --- a/include/assimp/ai_assert.h +++ b/include/assimp/ai_assert.h @@ -5,7 +5,7 @@ #ifdef ASSIMP_BUILD_DEBUG # include -# define ai_assert(expression) assert(expression) +# define ai_assert(expression) assert(expression); #else # define ai_assert(expression) #endif