Why the change to a hard limit on the number of bot groups, out of curiosity?
I realize that if 12 groups isn't enough to take down something, a player's got more problems than just bot count, but why add the hard limit when you were running on a LinkedList before?
If the problem was not being able to iterate through raid groups, this is what I was using for that:
Code:
LinkedListIterator <Group *> gps(RaidGroups);
gps.Reset();
while(gps.MoreElements())
{
Group *gp = gps.GetData();
if(gp) {
// do some stuff here to your new group pointer
// ...
}
gps.Advance();
}
also adding new groups:
Code:
// with your new group "newgroup"
RaidGroups.Append(newgroup);
// then reset any interators going to it