Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 7, 2007, 5:59:39 PM (17 years ago)
Author:
nicolasc
Message:

xfer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/vs-enhencements/src/world_entities/weapons/weapon_slot.h

    r10676 r10678  
    3232
    3333  inline Weapon* getCurrentWeapon() { return this->currentWeapon; }
    34   inline void setCurrentWeapon(int config) { this->currentWeapon = this->configs[config]; }
     34  inline void setCurrentWeapon(int config) { config == -1 ? this->currentWeapon = NULL: this->currentWeapon = this->configs[config]; }
    3535
    3636  inline Weapon* getNextWeapon() { return this->nextWeapon; }
    37   inline void setNextWeapon(int config) { if (config == -1) this->nextWeapon = NULL; else this->nextWeapon = configs[config]; }
     37  inline void setNextWeapon(int config) { config == -1 ? this->nextWeapon = NULL : this->nextWeapon = configs[config]; }
    3838
    3939  inline void setNextToCurrent() {this->currentWeapon = this->nextWeapon; };
Note: See TracChangeset for help on using the changeset viewer.