Changeset 6725 for code/trunk/src/modules/pickup/PickupRepresentation.cc
- Timestamp:
- Apr 13, 2010, 10:39:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/pickup/PickupRepresentation.cc
r6711 r6725 49 49 This is primarily for use of the PickupManager in creating a default PickupRepresentation. 50 50 */ 51 PickupRepresentation::PickupRepresentation() : BaseObject(NULL), spawnerRepresentation_(NULL) 51 PickupRepresentation::PickupRepresentation() : BaseObject(NULL), spawnerRepresentation_(NULL), pickup_(NULL) 52 52 { 53 53 RegisterObject(PickupRepresentation); … … 60 60 Default Constructor. Registers the object and initializes its member variables. 61 61 */ 62 PickupRepresentation::PickupRepresentation(BaseObject* creator) : BaseObject(creator), spawnerRepresentation_(NULL) 62 PickupRepresentation::PickupRepresentation(BaseObject* creator) : BaseObject(creator), spawnerRepresentation_(NULL), pickup_(NULL) 63 63 { 64 64 RegisterObject(PickupRepresentation); … … 75 75 if(this->spawnerRepresentation_ != NULL) 76 76 this->spawnerRepresentation_->destroy(); 77 78 if(this->pickup_ != NULL) 79 PickupManager::getInstance().unregisterRepresentation(this->pickup_->getPickupIdentifier(), this); 77 80 } 78 81 … … 87 90 this->spawnerTemplate_ = ""; 88 91 this->inventoryRepresentation_ = "Default"; 89 this->pickup_ = NULL;90 92 } 91 93
Note: See TracChangeset
for help on using the changeset viewer.