mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 20:45:34 +00:00
Fix double writing of Dialogue NAME in OpenCS
(cherry picked from commit af4923577b
)
This commit is contained in:
parent
d3caeaf898
commit
ebf9ffd1da
1 changed files with 0 additions and 2 deletions
|
@ -131,14 +131,12 @@ void CSMDoc::WriteDialogueCollectionStage::perform (int stage, Messages& message
|
|||
&& topic.mState != CSMWorld::RecordBase::State_ModifiedOnly)
|
||||
{
|
||||
mState.getWriter().startRecord (topic.mBase.sRecordId);
|
||||
mState.getWriter().writeHNCString ("NAME", topic.mBase.mId);
|
||||
topic.mBase.save (mState.getWriter(), topic.mState == CSMWorld::RecordBase::State_Deleted);
|
||||
mState.getWriter().endRecord (topic.mBase.sRecordId);
|
||||
}
|
||||
else
|
||||
{
|
||||
mState.getWriter().startRecord (topic.mModified.sRecordId);
|
||||
mState.getWriter().writeHNCString ("NAME", topic.mModified.mId);
|
||||
topic.mModified.save (mState.getWriter(), topic.mState == CSMWorld::RecordBase::State_Deleted);
|
||||
mState.getWriter().endRecord (topic.mModified.sRecordId);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue