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]; }