1
0
Fork 0

fix old bug: remove the models from where they were added (the model branch

is nowhere set)
This commit is contained in:
mfranz 2006-03-20 17:45:50 +00:00
parent 3b977ee40e
commit 60745d4db1

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