Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 31, 2015, 4:54:16 PM (9 years ago)
Author:
landauf
Message:

fixed segfault. after removing the engine from the ship, we need to destroy it. otherwise the engine remains in the object lists and will be destroyed at the end of the game - but at this point the ship may not exist anymore, leading to a crash.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentationFS14/src/orxonox/items/PartDestructionEvent.cc

    r10073 r10214  
    121121            switch (this->targetParam_) {
    122122            case null:
    123                 this->parent_->getParent()->removeEngine(this->parent_->getParent()->getEngineByName(targetName_));
     123                this->parent_->getParent()->getEngineByName(targetName_)->destroy();
    124124                break;
    125125            case boostfactor:
Note: See TracChangeset for help on using the changeset viewer.