Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6707 in orxonox.OLD for branches/powerups/src/story_entities


Ignore:
Timestamp:
Jan 25, 2006, 4:02:01 PM (19 years ago)
Author:
manuel
Message:

fixed bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/powerups/src/story_entities/game_world.cc

    r6634 r6707  
    300300void GameWorld::tick(std::list<WorldEntity*> entityList, float dt)
    301301{
    302   std::list<WorldEntity*>::iterator entity;
    303   for (entity = entityList.begin(); entity != entityList.end(); entity++)
     302  std::list<WorldEntity*>::iterator entity, next;
     303  next = entityList.begin();
     304  while (next != entityList.end())
     305  {
     306    entity = next++;
    304307    (*entity)->tick(dt);
    305 
     308  }
    306309}
    307310
Note: See TracChangeset for help on using the changeset viewer.