forked from teamnwah/openmw-tes3coop
Fix crash introduced by commit 1d8a9ff622
(Fixes #3940)
This commit is contained in:
parent
ea5fe4b686
commit
951c4e12e0
1 changed files with 5 additions and 2 deletions
|
@ -379,8 +379,11 @@ namespace MWWorld
|
||||||
return;
|
return;
|
||||||
case ESM::REC_PLAY:
|
case ESM::REC_PLAY:
|
||||||
mPlayer->readRecord(reader, type);
|
mPlayer->readRecord(reader, type);
|
||||||
|
if (getPlayerPtr().isInCell())
|
||||||
|
{
|
||||||
mWorldScene->preloadCell(getPlayerPtr().getCell(), true);
|
mWorldScene->preloadCell(getPlayerPtr().getCell(), true);
|
||||||
mWorldScene->preloadTerrain(getPlayerPtr().getRefData().getPosition().asVec3());
|
mWorldScene->preloadTerrain(getPlayerPtr().getRefData().getPosition().asVec3());
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (!mStore.readRecord (reader, type) &&
|
if (!mStore.readRecord (reader, type) &&
|
||||||
|
|
Loading…
Reference in a new issue