Skip to content

Commit

Permalink
Merge branch 'soundgenorder' into 'master'
Browse files Browse the repository at this point in the history
Write SoundGens after their creatures

See merge request OpenMW/openmw!4420
  • Loading branch information
psi29a committed Oct 23, 2024
2 parents 462e118 + 9395624 commit 69fa1ee
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 @@ -97,9 +97,6 @@ CSMDoc::Saving::Saving(Document& document, const std::filesystem::path& projectP
appendStage(
new WriteCollectionStage<CSMWorld::IdCollection<ESM::BodyPart>>(mDocument.getData().getBodyParts(), mState));

appendStage(new WriteCollectionStage<CSMWorld::IdCollection<ESM::SoundGenerator>>(
mDocument.getData().getSoundGens(), mState));

appendStage(new WriteCollectionStage<CSMWorld::IdCollection<ESM::MagicEffect>>(
mDocument.getData().getMagicEffects(), mState));

Expand All @@ -108,6 +105,10 @@ CSMDoc::Saving::Saving(Document& document, const std::filesystem::path& projectP

appendStage(new WriteRefIdCollectionStage(mDocument, mState));

// Can reference creatures so needs to load after them for TESCS compatibility
appendStage(new WriteCollectionStage<CSMWorld::IdCollection<ESM::SoundGenerator>>(
mDocument.getData().getSoundGens(), mState));

appendStage(new CollectionReferencesStage(mDocument, mState));

appendStage(new WriteCellCollectionStage(mDocument, mState));
Expand Down

0 comments on commit 69fa1ee

Please sign in to comment.