Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 24, 2007, 12:10:18 AM (16 years ago)
Author:
rgrieder
Message:
  • removed some gcc warnings in weapon system
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/objects/weapon_system/WeaponStation.cc

    r668 r680  
    4242
    4343  WeaponStation::WeaponStation(int stationSize)
    44         : stationSize_(stationSize), lastActiveSlotIndex_(-1),
    45         slots_(new BaseWeapon*[stationSize])
     44        : slots_(new BaseWeapon*[stationSize]),
     45          lastActiveSlotIndex_(-1), stationSize_(stationSize)
    4646  {
    4747        //slots_ = new BaseWeapon*[stationSize];
     
    5959  bool WeaponStation::addWeapon(BaseWeapon *weapon)
    6060  {
    61     if (lastActiveSlotIndex_ = stationSize_ - 1)
     61    if (lastActiveSlotIndex_ == stationSize_ - 1)
    6262      return false;
    6363
Note: See TracChangeset for help on using the changeset viewer.