From 60745d4db178734fc08d035c2a3940801e7ffccf Mon Sep 17 00:00:00 2001 From: mfranz Date: Mon, 20 Mar 2006 17:45:50 +0000 Subject: [PATCH] fix old bug: remove the models from where they were added (the model branch is nowhere set) --- src/Model/modelmgr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/modelmgr.cxx b/src/Model/modelmgr.cxx index 86ae8c23b..0928b2c64 100644 --- a/src/Model/modelmgr.cxx +++ b/src/Model/modelmgr.cxx @@ -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]; }