Fix crash introduced by commit 1d8a9ff622 (Fixes #3940)

pull/258/head
scrawl 8 years ago
parent ec458ef385
commit 9c94244b28

@ -378,8 +378,11 @@ namespace MWWorld
return;
case ESM::REC_PLAY:
mPlayer->readRecord(reader, type);
mWorldScene->preloadCell(getPlayerPtr().getCell(), true);
mWorldScene->preloadTerrain(getPlayerPtr().getRefData().getPosition().asVec3());
if (getPlayerPtr().isInCell())
{
mWorldScene->preloadCell(getPlayerPtr().getCell(), true);
mWorldScene->preloadTerrain(getPlayerPtr().getRefData().getPosition().asVec3());
}
break;
default:
if (!mStore.readRecord (reader, type) &&

Loading…
Cancel
Save