Changeset 8305 for code/trunk/src/modules/pickup
- Timestamp:
- Apr 22, 2011, 9:28:56 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/pickup/PickupCollection.cc
r7547 r8305 54 54 The creator of the object. 55 55 */ 56 PickupCollection::PickupCollection(BaseObject* creator) : BaseObject(creator) 56 PickupCollection::PickupCollection(BaseObject* creator) : BaseObject(creator), pickupCollectionIdentifier_(NULL) 57 57 { 58 58 RegisterObject(PickupCollection); … … 70 70 Destructor. Iterates through all Pickupables this PickupCollection consists of and destroys them if they haven't been already. 71 71 */ 72 PickupCollection::~ PickupCollection()72 PickupCollection::~ PickupCollection() 73 73 { 74 74 // Destroy all Pickupables constructing this PickupCollection. … … 79 79 } 80 80 this->pickups_.clear(); 81 82 if(this->pickupCollectionIdentifier_ != NULL) 83 delete this->pickupCollectionIdentifier_; 81 84 } 82 85
Note: See TracChangeset
for help on using the changeset viewer.