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/Weapon.h

    r2272 r2327  
    5252            virtual void fire();
    5353            void attachNeededMunition(std::string munitionType);
    54             virtual void setParentWeaponSystem();
    5554            Munition * getAttachedMunition();
    5655
     
    7271
    7372            inline void setParentWeaponSlot(WeaponSlot *parentWeaponSlot)
    74                 { parentWeaponSlot_=parentWeaponSlot; };
     73                { this->parentWeaponSlot_=parentWeaponSlot; };
    7574            inline WeaponSlot * getParentWeaponSlot()
    76                 { return parentWeaponSlot_; };
     75                { return this->parentWeaponSlot_; };
     76            inline void setParentWeaponSystem(WeaponSystem *parentWeaponSystem)
     77                { this->parentWeaponSystem_=parentWeaponSystem; };
     78            inline WeaponSystem * getParentWeaponSystem()
     79                { return this->parentWeaponSystem_; };
    7780
    7881        private:
Note: See TracChangeset for help on using the changeset viewer.