Game Development Community

Is this a bug? No endgroup("Misc"); in shapeBase.cc

by Joe Bird · in Torque Game Engine · 01/21/2004 (3:24 pm) · 4 replies

addGroup("Misc");

addField("aiAvoidThis",TypeBool,Offset(aiAvoidThis,ShapeBaseData));

addField("computeCRC",TypeBool,Offset(computeCRC,ShapeBaseData));

addGroup("Misc");

V12 and HEAD:

In shapeBase.cc, initPersistFields, there are two addGroup("Misc"); shouldn't the second one be endGroup("Misc");?

I don't know if this affects anything, I just noticed it as being inconsistent with the rest of the code in initPersistFields.

#1
01/21/2004 (8:05 pm)
Yes it should be endGroup, not ending it may have some effect on the mission editor, but other than that I don't think it hurts anything.
#2
01/22/2004 (9:51 am)
Good eye. Fix checked in.
#3
01/22/2004 (9:56 am)
What were the effects of this?
#4
01/22/2004 (10:29 pm)
Probably none. It's mostly a typo. The inspector gui might be slightly messed, the doc exporter should recover just fine.