Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 18, 2011, 12:54:25 PM (14 years ago)
Author:
dafrick
Message:

Values that are needed in the destructor need to be initialized before RegisterObject(…) is executed, because when the class hierarchy is created an object of each class is created and destroyed when RegisterObject(…) is executed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/bigships/src/orxonox/worldentities/pawns/SpaceShip.cc

    r8426 r8503  
    4646    CreateFactory(SpaceShip);
    4747
    48     SpaceShip::SpaceShip(BaseObject* creator) : Pawn(creator)
     48    SpaceShip::SpaceShip(BaseObject* creator) : Pawn(creator), boostBlur_(NULL)
    4949    {
    5050        RegisterObject(SpaceShip);
     
    5959        this->steering_ = Vector3::ZERO;
    6060        //this->engine_ = 0;
    61                
    62         this->boostBlur_ = 0;
    6361
    6462        this->boostPower_ = 10.0f;
Note: See TracChangeset for help on using the changeset viewer.