Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 9, 2008, 5:44:34 PM (16 years ago)
Author:
polakma
Message:

fixed some pointer bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weapon2/src/orxonox/objects/worldentities/pawns/Pawn.cc

    r2337 r2366  
    167167    {   
    168168COUT(0) << "Pawn::setWeaponPack" << std::endl;
     169        wPack->setParentWeaponSystem(this->weaponSystem_);
     170        wPack->setParentWeaponSystemToAllWeapons(this->weaponSystem_);
    169171        this->weaponSystem_->attachWeaponPack( wPack,wPack->getFireMode() );
    170         wPack->setParentWeaponSystem(this->weaponSystem_);
    171         wPack->setWeaponSystemToAllWeapons(this->weaponSystem_);
     172        wPack->attachNeededMunitionToAllWeapons();
    172173    }
    173174
Note: See TracChangeset for help on using the changeset viewer.