- Timestamp:
- Dec 24, 2007, 12:10:18 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/objects/weapon_system/WeaponStation.cc
r668 r680 42 42 43 43 WeaponStation::WeaponStation(int stationSize) 44 : s tationSize_(stationSize), lastActiveSlotIndex_(-1),45 slots_(new BaseWeapon*[stationSize])44 : slots_(new BaseWeapon*[stationSize]), 45 lastActiveSlotIndex_(-1), stationSize_(stationSize) 46 46 { 47 47 //slots_ = new BaseWeapon*[stationSize]; … … 59 59 bool WeaponStation::addWeapon(BaseWeapon *weapon) 60 60 { 61 if (lastActiveSlotIndex_ = stationSize_ - 1)61 if (lastActiveSlotIndex_ == stationSize_ - 1) 62 62 return false; 63 63
Note: See TracChangeset
for help on using the changeset viewer.