Game Development Community

AddGroup missing in Marker::initPersistFields()

by Tom Spilman · in Torque Game Engine · 08/03/2005 (9:33 pm) · 2 replies

Simple little bug....

void Marker::initPersistFields()
{
   Parent::initPersistFields();

   addField("seqNum",   TypeS32, Offset(mSeqNum,   Marker));
   addField("type", TypeEnum, Offset(mKnotType, Marker), 1, &markerKnotTable);
   addField("msToNext", TypeS32, Offset(mMSToNext, Marker));
   addField("smoothingType", TypeEnum, Offset(mSmoothingType, Marker), 1, &markerSmoothingTable);
   endGroup("Misc");
}

The addGroup("Misc") is missing which was probably screwing up document generation in some subtle way. While your at it maybe a check should be added in endGroup() to make sure it's balanced. I looked at it, but didn't understand what it was doing.

About the author

Tom is a programmer and co-owner of Sickhead Games, LLC.


#1
10/19/2005 (7:32 am)
Bump! Ben this still isn't fixed in the 1.4 RC2 head i just grabbed from CVS.
#2
10/20/2005 (5:34 pm)
Ok, fixed now, thanks Tom!

I'll review the group balance issue later on - it basically comes down to sometimes getting fed group begin/ends in weird orders. More complex than I want to go into right now.