Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 17, 2014, 3:41:17 PM (11 years ago)
Author:
noep
Message:

Tried to prevent the StaticEntities & Collisionshapes from getting deleted by creating vectors of SmartPointers to them. didn't work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/modularships/src/orxonox/worldentities/pawns/ModularSpaceShip.h

    r10033 r10036  
    122122            virtual void updatePartAssignment();
    123123
     124            void createCSPtrList(CompoundCollisionShape* cs);
     125
    124126        protected:
    125127
     
    128130            void registerVariables();
    129131            std::vector<ShipPart*> partList_;  // The list of all Parts mounted on this ModularSpaceShip.
     132            std::vector<SmartPtr<StaticEntity>*> entityPtrList_;
     133            std::vector<SmartPtr<CollisionShape>*> csPtrList_;
    130134            std::map<StaticEntity*, ShipPart*> partMap_;
    131135       
Note: See TracChangeset for help on using the changeset viewer.