- Timestamp:
- Jun 12, 2012, 11:05:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/modules/pickup/PickupCollection.cc
r9293 r9294 75 75 for(std::list<CollectiblePickup*>::iterator it = this->pickups_.begin(); it != this->pickups_.end(); ++it) 76 76 { 77 if((*it)->isBeingDestroyed())78 continue;79 80 77 (*it)->wasRemovedFromCollection(); 81 78 (*it)->destroyPickup(); … … 84 81 85 82 if(this->pickupCollectionIdentifier_ != NULL) 86 delete this->pickupCollectionIdentifier_;83 this->pickupCollectionIdentifier_->destroy(); 87 84 } 88 85 … … 187 184 if(this->pickedUpCounter_ <= this->disabledCounter_ && this->isPickedUp()) 188 185 this->Pickupable::destroy(); 189 190 // If the PickupCollection is no longer picked up. 191 if(!this->isPickedUp()) 186 else if(!this->isPickedUp()) // If the PickupCollection is no longer picked up. 192 187 this->pickedUpCounter_ = 0; 193 188 }
Note: See TracChangeset
for help on using the changeset viewer.