Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 2, 2010, 1:53:41 AM (14 years ago)
Author:
landauf
Message:

fixed a bug in WeaponSystem which lead to a crash in combination with the new FPS player

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/orxonox/weaponsystem/WeaponSystem.cc

    r6417 r7078  
    214214        Weapon* weapon = 0;
    215215        while ((weapon = wPack->getWeapon(i++)))
    216             weapon->getWeaponSlot()->removeWeapon();
     216            if (weapon->getWeaponSlot())
     217                weapon->getWeaponSlot()->removeWeapon();
    217218
    218219        // Remove all added links from the WeaponSets
Note: See TracChangeset for help on using the changeset viewer.