Game Development Community

Curious bug in materialList.cc

by Kyle Anderson · in Torque Game Engine · 01/03/2005 (12:42 pm) · 2 replies

Line 111:
AssertFatal(mMaterials.size() == mMaterials.size(), "MaterialList::load: internal vectors out of sync.");


Seems to be a totally worthless assertion. Perhaps what was intended was:

AssertFatal(mMaterials.size() == mMaterialNames.size(), "MaterialList::load: internal vectors out of sync.");

#1
01/03/2005 (9:52 pm)
Hmm... Good eye. Thanks, it's on my todo list now.
#2
03/14/2005 (11:23 pm)
Thanks, Jeremy. Fix in the codebase.