forked from mirror/openmw-tes3mp
fixed pathgrid saving again (previous fix was incomplete)
This commit is contained in:
parent
2d3ffc4483
commit
23e969eae7
2 changed files with 4 additions and 2 deletions
|
@ -78,8 +78,6 @@ CSMDoc::Saving::Saving (Document& document, const boost::filesystem::path& proje
|
||||||
appendStage (new WriteCollectionStage<CSMWorld::IdCollection<ESM::MagicEffect> >
|
appendStage (new WriteCollectionStage<CSMWorld::IdCollection<ESM::MagicEffect> >
|
||||||
(mDocument.getData().getMagicEffects(), mState));
|
(mDocument.getData().getMagicEffects(), mState));
|
||||||
|
|
||||||
appendStage (new WritePathgridCollectionStage (mDocument, mState));
|
|
||||||
|
|
||||||
appendStage (new WriteDialogueCollectionStage (mDocument, mState, false));
|
appendStage (new WriteDialogueCollectionStage (mDocument, mState, false));
|
||||||
|
|
||||||
appendStage (new WriteDialogueCollectionStage (mDocument, mState, true));
|
appendStage (new WriteDialogueCollectionStage (mDocument, mState, true));
|
||||||
|
@ -90,6 +88,8 @@ CSMDoc::Saving::Saving (Document& document, const boost::filesystem::path& proje
|
||||||
|
|
||||||
appendStage (new WriteCellCollectionStage (mDocument, mState));
|
appendStage (new WriteCellCollectionStage (mDocument, mState));
|
||||||
|
|
||||||
|
appendStage (new WritePathgridCollectionStage (mDocument, mState));
|
||||||
|
|
||||||
// close file and clean up
|
// close file and clean up
|
||||||
appendStage (new CloseSaveStage (mState));
|
appendStage (new CloseSaveStage (mState));
|
||||||
|
|
||||||
|
|
|
@ -337,6 +337,8 @@ void CSMDoc::WritePathgridCollectionStage::perform (int stage, Messages& message
|
||||||
char ignore;
|
char ignore;
|
||||||
stream >> ignore >> record.mData.mX >> record.mData.mY;
|
stream >> ignore >> record.mData.mX >> record.mData.mY;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
record.mCell = record.mId;
|
||||||
|
|
||||||
mState.getWriter().startRecord (record.sRecordId);
|
mState.getWriter().startRecord (record.sRecordId);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue