mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 11:23:51 +00:00
fixed cell change crash
This commit is contained in:
parent
c7fb27e801
commit
bed45a936e
1 changed files with 5 additions and 1 deletions
|
@ -402,7 +402,11 @@ void ExteriorCellRender::destroy()
|
||||||
|
|
||||||
mBase = NULL;
|
mBase = NULL;
|
||||||
std::cout << "destroy";
|
std::cout << "destroy";
|
||||||
|
if (sg)
|
||||||
|
{
|
||||||
Ogre::Root::getSingleton().getSceneManagerIterator().getNext()->destroyStaticGeometry(sg);
|
Ogre::Root::getSingleton().getSceneManagerIterator().getNext()->destroyStaticGeometry(sg);
|
||||||
|
sg = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Switch through lighting modes.
|
// Switch through lighting modes.
|
||||||
|
|
Loading…
Reference in a new issue