Changeset 5778 in orxonox.OLD for trunk/src/lib/physics
- Timestamp:
- Nov 25, 2005, 3:41:18 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/physics/physics_engine.cc
r5776 r5778 49 49 { 50 50 // delete all PhysicsConnections that are still in existence 51 list<PhysicsConnection*>::iterator pc; 52 for (pc = this->connections.begin(); pc != this->connections.end(); pc++) 53 delete (*pc); 51 while (this->connections.size() > 0) 52 { 53 PhysicsConnection* connection = this->connections.front(); 54 this->connections.pop_front(); 55 delete connection; 56 } 54 57 // 55 58 // // delete all PhysicsInterfaces, still in existence (this could be dangerous)
Note: See TracChangeset
for help on using the changeset viewer.