Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 7, 2006, 10:33:06 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: safer smart-pointer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/world_entities/weapons/weapon.cc

    r9715 r9723  
    542542{
    543543  PRINTF(4)("Reloading Weapon %s\n", this->getCName());
    544   if (this->ammoContainer.get() != NULL &&
     544  if (!this->ammoContainer.isNull() &&
    545545      unlikely(this->energy + this->ammoContainer->getStoredEnergy() < this->minCharge))
    546546  {
     
    554554    this->soundSource->play(this->soundBuffers[WA_RELOAD]);
    555555
    556   if (this->ammoContainer.get() != NULL)
     556  if (!this->ammoContainer.isNull())
    557557    this->ammoContainer->fillWeapon(this);
    558558  else
Note: See TracChangeset for help on using the changeset viewer.