1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-15 09:39:42 +00:00

Merge branch 'journalFirst' into 'master'

FIX: Serialize journal records first when saving plugins

See merge request 
This commit is contained in:
Alexei Kotov 2024-10-22 01:37:02 +00:00
commit 1fcbcd5bfa

View file

@ -112,12 +112,13 @@ CSMDoc::Saving::Saving(Document& document, const std::filesystem::path& projectP
appendStage(new WriteCellCollectionStage(mDocument, mState));
// Dialogue can reference objects and cells so must be written after these records for vanilla-compatible files
appendStage(new WriteDialogueCollectionStage(mDocument, mState, false));
// Dialogue can reference objects, cells, and journals so must be written after these records for vanilla-compatible
// files
appendStage(new WriteDialogueCollectionStage(mDocument, mState, true));
appendStage(new WriteDialogueCollectionStage(mDocument, mState, false));
appendStage(new WritePathgridCollectionStage(mDocument, mState));
appendStage(new WriteLandTextureCollectionStage(mDocument, mState));