From: mfranz Date: Mon, 20 Mar 2006 17:45:50 +0000 (+0000) Subject: fix old bug: remove the models from where they were added (the model branch X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=60745d4db178734fc08d035c2a3940801e7ffccf;p=flightgear.git fix old bug: remove the models from where they were added (the model branch is nowhere set) --- 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]; }