From 42bcbe34de75b2e631020ff5b7496daafdaa2a98 Mon Sep 17 00:00:00 2001 From: cc9cii Date: Sun, 4 Jul 2021 16:18:47 +1000 Subject: [PATCH] Cell references that teleport (Doors) should be placed in the "persistent" group when saving. --- apps/opencs/model/doc/savingstages.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/opencs/model/doc/savingstages.cpp b/apps/opencs/model/doc/savingstages.cpp index edf319db6c..27b31251e5 100644 --- a/apps/opencs/model/doc/savingstages.cpp +++ b/apps/opencs/model/doc/savingstages.cpp @@ -343,7 +343,7 @@ void CSMDoc::WriteCellCollectionStage::perform (int stage, Messages& messages) CSMWorld::CellRef refRecord = ref.get(); unsigned int recordFlags = refIdData.getRecordFlags(refRecord.mRefID); - bool isPersistent = (recordFlags & 0x00000400) != 0; + bool isPersistent = ((recordFlags & 0x00000400) != 0) || refRecord.mTeleport; if (isPersistent) persistentRefs.push_back(*iter);