Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 29, 2011, 9:58:34 AM (13 years ago)
Author:
landauf
Message:

fixed engine destructor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/items/Engine.cc

    r8648 r8654  
    7272    Engine::~Engine()
    7373    {
    74         if( this->ship_ && this->ship_->hasEngine(this) )
    75             this->ship_->removeEngine(this);
     74        if (this->isInitialized())
     75        {
     76            if (this->ship_ && this->ship_->hasEngine(this))
     77                this->ship_->removeEngine(this);
     78        }
    7679    }
    7780
Note: See TracChangeset for help on using the changeset viewer.