]> git.mxchange.org Git - flightgear.git/commitdiff
fix old bug: remove the models from where they were added (the model branch
authormfranz <mfranz>
Mon, 20 Mar 2006 17:45:50 +0000 (17:45 +0000)
committermfranz <mfranz>
Mon, 20 Mar 2006 17:45:50 +0000 (17:45 +0000)
is nowhere set)

src/Model/modelmgr.cxx

index 86ae8c23baa340ae7835b775cd1867ae1b825c45..0928b2c64d113252b69ba2deb73acaa34d084222 100644 (file)
@@ -40,7 +40,7 @@ FGModelMgr::~FGModelMgr ()
   delete _listener;
 
   for (unsigned int i = 0; i < _instances.size(); i++) {
-    globals->get_scenery()->get_models_branch()
+    globals->get_scenery()->get_scene_graph()
       ->removeKid(_instances[i]->model->getSceneGraph());
     delete _instances[i];
   }