mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
fixed cell change crash
This commit is contained in:
parent
c7fb27e801
commit
bed45a936e
@ -402,7 +402,11 @@ void ExteriorCellRender::destroy()
|
||||
|
||||
mBase = NULL;
|
||||
std::cout << "destroy";
|
||||
if (sg)
|
||||
{
|
||||
Ogre::Root::getSingleton().getSceneManagerIterator().getNext()->destroyStaticGeometry(sg);
|
||||
sg = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Switch through lighting modes.
|
||||
|
Loading…
x
Reference in New Issue
Block a user