Changeset 7801 for code/trunk/src/modules/pickup/PickupSpawner.cc
- Timestamp:
- Dec 22, 2010, 7:24:24 PM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/modules/pickup/PickupSpawner.cc
r7549 r7801 120 120 PickupSpawner::~PickupSpawner() 121 121 { 122 if(this-> selfDestruct_ && this->pickup_ != NULL)122 if(this->isInitialized() && this->selfDestruct_ && this->pickup_ != NULL) 123 123 this->pickup_->destroy(); 124 124 } … … 317 317 assert(pickup); 318 318 assert(target); 319 assert(pickup->pickup(target)); 319 bool pickedUp = pickup->pickup(target); 320 assert(pickedUp); 321 pickedUp = false; // To avoid compiler warning. 320 322 321 323 this->decrementSpawnsRemaining();
Note: See TracChangeset
for help on using the changeset viewer.