mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-02 12:36:39 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue