Changeset 9723 in orxonox.OLD for branches/new_class_id/src/world_entities
- Timestamp:
- Sep 7, 2006, 10:33:06 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/weapons/weapon.cc
r9715 r9723 542 542 { 543 543 PRINTF(4)("Reloading Weapon %s\n", this->getCName()); 544 if ( this->ammoContainer.get() != NULL&&544 if (!this->ammoContainer.isNull() && 545 545 unlikely(this->energy + this->ammoContainer->getStoredEnergy() < this->minCharge)) 546 546 { … … 554 554 this->soundSource->play(this->soundBuffers[WA_RELOAD]); 555 555 556 if ( this->ammoContainer.get() != NULL)556 if (!this->ammoContainer.isNull()) 557 557 this->ammoContainer->fillWeapon(this); 558 558 else
Note: See TracChangeset
for help on using the changeset viewer.