From 921e343187ce31df32938b458f9dea3752d11d9b Mon Sep 17 00:00:00 2001 From: Stinkfist0 Date: Tue, 7 Mar 2017 16:07:01 +0200 Subject: [PATCH] Fix assertion. Closes #192 --- src/ifcgeom/IfcGeomFilter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcgeom/IfcGeomFilter.h b/src/ifcgeom/IfcGeomFilter.h index 52532870b3..c54fb0fb7d 100644 --- a/src/ifcgeom/IfcGeomFilter.h +++ b/src/ifcgeom/IfcGeomFilter.h @@ -146,8 +146,8 @@ namespace IfcGeom for (arg_map_t::const_iterator it = args.begin(); it != args.end(); ++it) { IfcWrite::IfcWritableEntity dummy(it->first); IfcUtil::IfcBaseClass* base = IfcSchema::SchemaEntity(&dummy); - assert(it->second < base->getArgumentType(it->second) == IfcUtil::Argument_STRING && "Argument type not string"); assert(it->second < base->getArgumentCount() && "Argument index out of bounds"); + assert(base->getArgumentType(it->second) == IfcUtil::Argument_STRING && "Argument type not string"); delete base; } #endif