|
|
|
@ -134,10 +134,21 @@ void CSMDoc::WriteDialogueCollectionStage::perform (int stage, Messages& message
|
|
|
|
|
state==CSMWorld::RecordBase::State_ModifiedOnly ||
|
|
|
|
|
infoModified)
|
|
|
|
|
{
|
|
|
|
|
mState.getWriter().startRecord (topic.mModified.sRecordId);
|
|
|
|
|
mState.getWriter().writeHNCString ("NAME", topic.mModified.mId);
|
|
|
|
|
topic.mModified.save (mState.getWriter());
|
|
|
|
|
mState.getWriter().endRecord (topic.mModified.sRecordId);
|
|
|
|
|
if (infoModified && state != CSMWorld::RecordBase::State_Modified
|
|
|
|
|
&& state != CSMWorld::RecordBase::State_ModifiedOnly)
|
|
|
|
|
{
|
|
|
|
|
mState.getWriter().startRecord (topic.mBase.sRecordId);
|
|
|
|
|
mState.getWriter().writeHNCString ("NAME", topic.mBase.mId);
|
|
|
|
|
topic.mBase.save (mState.getWriter());
|
|
|
|
|
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());
|
|
|
|
|
mState.getWriter().endRecord (topic.mModified.sRecordId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// write modified selected info records
|
|
|
|
|
for (CSMWorld::InfoCollection::RecordConstIterator iter (range.first); iter!=range.second;
|
|
|
|
|