From 96757a3b7c8842865a9d2426947f56fb0d682b0a Mon Sep 17 00:00:00 2001 From: scrawl Date: Sat, 2 Jul 2016 19:43:08 +0200 Subject: [PATCH] Fix non-predefined cells not being saved correctly --- apps/openmw/mwworld/cells.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/openmw/mwworld/cells.cpp b/apps/openmw/mwworld/cells.cpp index 75d908db8..47b2af053 100644 --- a/apps/openmw/mwworld/cells.cpp +++ b/apps/openmw/mwworld/cells.cpp @@ -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;