fixed cell change crash

actorid
Marc Zinnschlag 14 years ago
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…
Cancel
Save