1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:53:50 +00:00

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

This commit is contained in:
scrawl 2017-06-30 00:51:26 +02:00
parent ec458ef385
commit 9c94244b28

View file

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