Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2008, 4:30:13 PM (15 years ago)
Author:
polakma
Message:

fixed parentWeaponSystem-Pointer bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weapon2/src/orxonox/objects/weaponSystem/WeaponSet.cc

    r2319 r2327  
    3939namespace orxonox
    4040{
     41    CreateFactory(WeaponSet);
     42
    4143    WeaponSet::WeaponSet(BaseObject* creator, int k) : BaseObject(creator)
    4244    {
     
    5355    void WeaponSet::attachWeaponPack(WeaponPack *wPack)
    5456    {
     57COUT(0) << "WeaponSet::attachWeaponPack" << std::endl;
    5558        if ( this->parentWeaponSystem_->getWeaponSlotSize()>0 && wPack->getSize()>0 && ( wPack->getSize() <= this->parentWeaponSystem_->getWeaponSlotSize() ) )
    5659        {
     
    7578    {
    7679        //fires all WeaponSlots available for this weaponSet attached from the WeaponPack
     80COUT(0) << "WeaponSet::fire" << std::endl;
    7781        this->attachedWeaponPack_->fire();
    7882    }
Note: See TracChangeset for help on using the changeset viewer.