Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10192 for code/trunk


Ignore:
Timestamp:
Jan 11, 2015, 9:30:08 PM (10 years ago)
Author:
landauf
Message:

destroy elements in Scene in the opposite order of their creation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/Scene.cc

    r9667 r10192  
    9696        if (this->isInitialized())
    9797        {
     98            this->setPhysicalWorld(false);
     99
     100            if (this->radar_)
     101                this->radar_->destroy();
     102
    98103            if (GameMode::showsGraphics())
    99104                Ogre::Root::getSingleton().destroySceneManager(this->sceneManager_);
    100105            else
    101106                delete this->sceneManager_;
    102 
    103             if (this->radar_)
    104                 this->radar_->destroy();
    105 
    106             this->setPhysicalWorld(false);
    107107        }
    108108    }
Note: See TracChangeset for help on using the changeset viewer.