Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7996 in orxonox.OLD for branches/cr/src/lib/collision_reaction


Ignore:
Timestamp:
May 30, 2006, 10:37:22 PM (19 years ago)
Author:
patrick
Message:

cr: a list cleanup bug cleaned out. still one remaining. one very sticky.

Location:
branches/cr/src/lib/collision_reaction
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/cr/src/lib/collision_reaction/collision_handle.cc

    r7989 r7996  
    7373
    7474  // add element
    75   this->targetList.push_back(target);
     75   this->targetList.push_back(10);
    7676}
    7777
  • branches/cr/src/lib/collision_reaction/cr_engine.cc

    r7967 r7996  
    9090  // first clear all CollisionHandles
    9191
    92   while( !this->collisionHandles.empty())
     92  vector<CollisionHandle*>::iterator it = this->collisionHandles.begin();
     93  for(; it < this->collisionHandles.end(); it++)
    9394  {
    94     this->collisionHandles.front()->reset();
    95     delete this->collisionHandles.front();
     95    (*it)->reset();
     96    delete *it;
    9697  }
     98
    9799  this->collisionHandles.clear();
    98100}
Note: See TracChangeset for help on using the changeset viewer.