mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 19:49:41 +00:00
Fix a possible crash due to a null pointer.
This commit is contained in:
parent
251df73407
commit
16a6edbd0e
1 changed files with 3 additions and 3 deletions
|
@ -252,7 +252,6 @@ namespace MWWorld
|
||||||
mProjectileManager->clear();
|
mProjectileManager->clear();
|
||||||
|
|
||||||
mLocalScripts.clear();
|
mLocalScripts.clear();
|
||||||
mPlayer->clear();
|
|
||||||
|
|
||||||
mWorldScene->changeToVoid();
|
mWorldScene->changeToVoid();
|
||||||
|
|
||||||
|
@ -261,9 +260,10 @@ namespace MWWorld
|
||||||
|
|
||||||
if (mPlayer)
|
if (mPlayer)
|
||||||
{
|
{
|
||||||
mPlayer->setCell (0);
|
mPlayer->clear();
|
||||||
|
mPlayer->setCell(0);
|
||||||
mPlayer->getPlayer().getRefData() = RefData();
|
mPlayer->getPlayer().getRefData() = RefData();
|
||||||
mPlayer->set (mStore.get<ESM::NPC>().find ("player"));
|
mPlayer->set(mStore.get<ESM::NPC>().find ("player"));
|
||||||
}
|
}
|
||||||
|
|
||||||
mCells.clear();
|
mCells.clear();
|
||||||
|
|
Loading…
Reference in a new issue