Cloned references should be considered "Base" rather than "Modified". Should fix bug #2429.

This commit is contained in:
cc9cii 2015-03-08 10:05:10 +11:00
parent 907ac5ef7f
commit a54ab153b0

View file

@ -471,7 +471,7 @@ void CSMWorld::RefIdCollection::cloneRecord(const std::string& origin,
const CSMWorld::UniversalId::Type type)
{
std::auto_ptr<RecordBase> newRecord(mData.getRecord(mData.searchId(origin)).clone());
newRecord->mState = RecordBase::State_ModifiedOnly;
newRecord->mState = RecordBase::State_BaseOnly;
mAdapters.find(type)->second->setId(*newRecord, destination);
mData.insertRecord(*newRecord, type, destination);
}