- Timestamp:
- Mar 16, 2010, 10:49:35 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/interfaces/InterfaceCompilation.cc
r6524 r6533 64 64 PickupCarrier::~PickupCarrier() 65 65 { 66 for(std::set<Pickupable*>::iterator it = this->pickups_.begin(); it != this->pickups_.end(); it++)66 while(this->pickups_.size() > 0) 67 67 { 68 std::set<Pickupable*>::iterator it = this->pickups_.begin(); 69 this->pickups_.erase(it); 68 70 (*it)->destroy(); 69 71 } 70 72 71 73 this->pickups_.clear(); 72 74 }
Note: See TracChangeset
for help on using the changeset viewer.