Can anyone see HOW this code could generate an exception (read of address) in RemoveUnit:
void RemoveAllUnits(ScGroup grp)
{
Unit u;
GroupEnumerator enum1(grp);
while (enum1.GetNext(u))
grp.RemoveUnit(u);
}
I've tried inserting IsLive .. but thats not the problem. I've debugged it - the unitIDs are existing - i can call things like u.DoMove(...) without it crashing. I'm lost here :blink: