Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5793 in orxonox.OLD for trunk/src/lib/lang


Ignore:
Timestamp:
Nov 27, 2005, 4:27:21 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: performance update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/lang/class_list.cc

    r5792 r5793  
    8989  list<ClassList>::iterator cl;
    9090  for(cl = ClassList::classList->begin(); cl != ClassList::classList->end(); cl++)
     91  {
    9192    if (objectPointer->isA((*cl).classID))
    92       (*cl).objectList.remove(objectPointer);
     93    {
     94      std::list<BaseObject*>::iterator bo;
     95      for (bo = (*cl).objectList.begin(); bo != (*cl).objectList.end(); bo++)
     96      {
     97        if ((*bo) == objectPointer)
     98        {
     99          (*cl).objectList.erase(bo);
     100          break;
     101        }
     102      }
     103    }
     104  }
    93105}
    94106
Note: See TracChangeset for help on using the changeset viewer.