fix old bug: remove the models from where they were added (the model branch
is nowhere set)
This commit is contained in:
parent
3b977ee40e
commit
60745d4db1
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ FGModelMgr::~FGModelMgr ()
|
||||||
delete _listener;
|
delete _listener;
|
||||||
|
|
||||||
for (unsigned int i = 0; i < _instances.size(); i++) {
|
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());
|
->removeKid(_instances[i]->model->getSceneGraph());
|
||||||
delete _instances[i];
|
delete _instances[i];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue