Fix(CS): Initialize landscape when opening an existing cell without VHGT

pull/3236/head
Dave Corley 1 year ago
parent 2541b74fc6
commit 3e7335ddc7

@ -137,8 +137,9 @@ void CSVRender::Cell::updateLand()
{
const ESM::Land& esmLand = land.getRecord(mId).get();
if (esmLand.getLandData(ESM::Land::DATA_VHGT))
{
if (!esmLand.getLandData(ESM::Land::DATA_VHGT))
mTerrainStorage->resetHeights();
if (mTerrain)
{
mTerrain->unloadCell(mCoordinates.getX(), mCoordinates.getY());
@ -160,7 +161,6 @@ void CSVRender::Cell::updateLand()
return;
}
}
// No land data
unloadLand();

Loading…
Cancel
Save