mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 07:53:51 +00:00
Yet another crash fix
This commit is contained in:
parent
d8367f4968
commit
7385948056
1 changed files with 2 additions and 0 deletions
|
@ -150,6 +150,7 @@ void Objects::removeCell(MWWorld::Ptr::CellStore* store){
|
|||
{
|
||||
Ogre::SceneNode* base = mCellSceneNodes[store];
|
||||
base->removeAndDestroyAllChildren();
|
||||
mCellSceneNodes.erase(store);
|
||||
mRend.getScene()->destroySceneNode(base);
|
||||
base = 0;
|
||||
}
|
||||
|
@ -158,6 +159,7 @@ void Objects::removeCell(MWWorld::Ptr::CellStore* store){
|
|||
if(mSG.find(store) != mSG.end())
|
||||
{
|
||||
Ogre::StaticGeometry* sg = mSG[store];
|
||||
mSG.erase(store);
|
||||
mRend.getScene()->destroyStaticGeometry (sg);
|
||||
sg = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue