[Orxonox-commit 5529] r10192 - code/trunk/src/orxonox

landauf at orxonox.net landauf at orxonox.net
Sun Jan 11 21:30:08 CET 2015


Author: landauf
Date: 2015-01-11 21:30:08 +0100 (Sun, 11 Jan 2015)
New Revision: 10192

Modified:
   code/trunk/src/orxonox/Scene.cc
Log:
destroy elements in Scene in the opposite order of their creation.

Modified: code/trunk/src/orxonox/Scene.cc
===================================================================
--- code/trunk/src/orxonox/Scene.cc	2015-01-11 20:28:39 UTC (rev 10191)
+++ code/trunk/src/orxonox/Scene.cc	2015-01-11 20:30:08 UTC (rev 10192)
@@ -95,15 +95,15 @@
     {
         if (this->isInitialized())
         {
+            this->setPhysicalWorld(false);
+
+            if (this->radar_)
+                this->radar_->destroy();
+
             if (GameMode::showsGraphics())
                 Ogre::Root::getSingleton().destroySceneManager(this->sceneManager_);
             else
                 delete this->sceneManager_;
-
-            if (this->radar_)
-                this->radar_->destroy();
-
-            this->setPhysicalWorld(false);
         }
     }
 




More information about the Orxonox-commit mailing list