Changeset 5801 for code/branches/core5/src/orxonox/pickup
- Timestamp:
- Sep 26, 2009, 10:25:03 PM (15 years ago)
- Location:
- code/branches/core5/src/orxonox/pickup
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/orxonox/pickup/DroppedItem.cc
r5785 r5801 69 69 { 70 70 COUT(3) << "DroppedItem '" << this->item_->getPickupIdentifier() << "' picked up." << std::endl; 71 delete this;71 this->destroy(); 72 72 } 73 73 } … … 85 85 { 86 86 COUT(3) << "Delete DroppedItem with '" << this->item_->getPickupIdentifier() << "'" << std::endl; 87 delete this->item_;87 this->item_->destroy(); 88 88 } 89 89 90 delete this;90 this->destroy(); 91 91 } 92 92 -
code/branches/core5/src/orxonox/pickup/ModifierPickup.cc
r5738 r5801 139 139 this->timer_.stopTimer(); 140 140 141 delete this;141 this->destroy(); 142 142 143 143 return true; -
code/branches/core5/src/orxonox/pickup/PickupSpawner.cc
r5785 r5801 91 91 asItem->addTemplate(this->itemTemplate_); 92 92 PickupInventory::getImageForItem(asItem); 93 delete newObject;93 newObject->destroy(); 94 94 } 95 95 … … 174 174 } 175 175 else 176 delete newObject;176 newObject->destroy(); 177 177 } 178 178 } -
code/branches/core5/src/orxonox/pickup/items/HealthImmediate.cc
r5738 r5801 67 67 { 68 68 pawn->addHealth(this->recoveredHealth_); 69 delete this;69 this->destroy(); 70 70 } 71 71 -
code/branches/core5/src/orxonox/pickup/items/HealthUsable.cc
r5738 r5801 82 82 83 83 this->removeFrom(pawn); 84 delete this;84 this->destroy(); 85 85 } 86 86 } -
code/branches/core5/src/orxonox/pickup/items/Jump.cc
r5754 r5801 84 84 { 85 85 this->removeFrom(pawn); 86 delete this;86 this->destroy(); 87 87 } 88 88 }
Note: See TracChangeset
for help on using the changeset viewer.