From 091ca9743e97f16368c028d15ab00ec113e50b64 Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 14 Jan 2016 16:41:29 +0100 Subject: [PATCH] Do not write LandData twice (Fixes #3140) --- apps/opencs/model/doc/savingstages.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/opencs/model/doc/savingstages.cpp b/apps/opencs/model/doc/savingstages.cpp index db38c4779..af9c380a3 100644 --- a/apps/opencs/model/doc/savingstages.cpp +++ b/apps/opencs/model/doc/savingstages.cpp @@ -394,10 +394,6 @@ void CSMDoc::WriteLandCollectionStage::perform (int stage, Messages& messages) CSMWorld::Land record = land.get(); writer.startRecord (record.sRecordId); record.save (writer, land.mState == CSMWorld::RecordBase::State_Deleted); - - if (const ESM::Land::LandData *data = record.getLandData (record.mDataTypes)) - data->save (mState.getWriter()); - writer.endRecord (record.sRecordId); } }