Fix non-predefined cells not being saved correctly

coverity_scan^2
scrawl 9 years ago
parent d5f497c47d
commit 96757a3b7c

@ -105,6 +105,10 @@ MWWorld::CellStore *MWWorld::Cells::getExterior (int x, int y)
{
// Cell isn't predefined. Make one on the fly.
ESM::Cell record;
record.mCellId.mWorldspace = "sys::default";
record.mCellId.mPaged = true;
record.mCellId.mIndex.mX = x;
record.mCellId.mIndex.mY = y;
record.mData.mFlags = ESM::Cell::HasWater;
record.mData.mX = x;

Loading…
Cancel
Save