mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Fix crash introduced by commit 1d8a9ff62243cb6b8e218840d839e6d554f3e8d9 (Fixes #3940)
This commit is contained in:
parent
ea5fe4b686
commit
951c4e12e0
@ -379,8 +379,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…
x
Reference in New Issue
Block a user