Skip to content

Commit

Permalink
Merge branch 'journalFirst' into 'master'
Browse files Browse the repository at this point in the history
FIX: Serialize journal records first when saving plugins

See merge request OpenMW/openmw!4405
  • Loading branch information
Capostrophic committed Oct 22, 2024
2 parents cdf7bd7 + ea52a5f commit 1fcbcd5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/opencs/model/doc/saving.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 1fcbcd5

Please sign in to comment.