#JustTGEThings

Because it's not supposed to just work, right?


Removing objects from SimGroups does not delete them, it simply removes their parent group and you can never access them again.

void SimGroup::removeObject(SimObject* obj)
{
   if (obj->mGroup == this) {
      obj->onGroupRemove();
      nameDictionary.remove(obj);
      objectList.remove(obj);
      obj->mGroup = 0;
   }
}

Oh God there's more.
Share the horrifying with this link.