Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6714 in orxonox.OLD


Ignore:
Timestamp:
Jan 25, 2006, 4:24:24 PM (18 years ago)
Author:
bensch
Message:

no assertion error anymore.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/weapon_manager.cc

    r6679 r6714  
    263263
    264264  //! @todo check if the weapon is already assigned to another config in another slot
    265   assert(this->configs[configID][slotID] == NULL);
     265  if (this->configs[configID][slotID] != NULL)
     266    return false;
    266267
    267268  this->configs[configID][slotID] = weapon;
Note: See TracChangeset for help on using the changeset viewer.