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