mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 18:32:36 +00:00
Cell references that teleport (Doors) should be placed in the "persistent" group when saving.
This commit is contained in:
parent
2d8dd9be32
commit
42bcbe34de
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user