Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

fixed parentWeaponSystem-Pointer bugs

File:
1 edited

Legend:

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

    r2288 r2327  
    3737namespace orxonox
    3838{
     39    CreateFactory(Weapon);
     40
    3941    Weapon::Weapon(BaseObject* creator) : BaseObject(creator)
    4042    {
     
    4244        this->bulletReadyToShoot_ = true;
    4345        this->magazineReadyToShoot_ = true;
    44         this->setParentWeaponSystem();
    4546    }
    4647
     
    9596     *
    9697     */
    97     void Weapon::setParentWeaponSystem()
    98     {   this->parentWeaponSystem_ = this->parentWeaponSlot_->getParentWeaponSystem(); }
    99 
    10098    Munition * Weapon::getAttachedMunition()
    10199    {   return this->munition_; }
Note: See TracChangeset for help on using the changeset viewer.