- Timestamp:
- Mar 11, 2010, 10:59:37 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup3/src/modules/pickup/DroppedPickup.cc
r6512 r6516 51 51 RegisterObject(DroppedPickup); 52 52 53 this->initialize();54 53 } 55 54 … … 69 68 { 70 69 RegisterObject(DroppedPickup); 71 72 this->initialize(); 73 70 74 71 this->setPosition(position); 75 72 this->setActive(false); … … 83 80 DroppedPickup::~DroppedPickup() 84 81 { 85 if(this-> gotPickedUp_ && this->pickup_ != NULL)82 if(this->pickup_ != NULL && this->pickup_->isPickedUp()) 86 83 { 87 84 this->pickup_ = NULL; 88 85 } 89 }90 91 /**92 @brief93 Initializes the member variables of the object.94 */95 void DroppedPickup::initialize(void)96 {97 this->gotPickedUp_ = false;98 86 } 99 87
Note: See TracChangeset
for help on using the changeset viewer.