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

celladd
cc9cii 10 years ago
parent 907ac5ef7f
commit a54ab153b0

@ -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);
}

Loading…
Cancel
Save