Changeset 7948 in orxonox.OLD for branches/cr/src/lib/collision_reaction
- Timestamp:
- May 29, 2006, 1:35:35 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cr/src/lib/collision_reaction/cr_engine.cc
r7947 r7948 50 50 { 51 51 CREngine::singletonRef = NULL; 52 53 if( this->cachedCollisions.size() != CR_MAX_COLLISIONS) 54 PRINTF(0)("CollisionReaction Error: cache size missmatch: %i of %i\n", this->cachedCollisions.size(), CR_NUMBER); 55 56 this->reset(); 57 58 while( !this->cachedCollisions.empty()) 59 delete this->cachedCollisions.front(); 60 this->cachedCollisions.clear(); 52 61 } 53 62 … … 70 79 { 71 80 // first clear all CollisionHandles 72 std::vector<CollisionHandle*>::iterator it; 73 for( it = this->collisionHandles.begin(); it != this->collisionHandles.end(); it++)81 82 while( !this->collisionHandles.empty()) 74 83 { 75 (*it)->reset();76 delete *it;84 this->collisionHandles.front()->reset(); 85 delete this->collisionHandles.front(); 77 86 } 78 87 this->collisionHandles.clear();
Note: See TracChangeset
for help on using the changeset viewer.