|
|
@ -269,11 +269,15 @@ namespace CSMWorld
|
|
|
|
copy->mState = RecordBase::State_ModifiedOnly;
|
|
|
|
copy->mState = RecordBase::State_ModifiedOnly;
|
|
|
|
setRecordId(destination, copy->get());
|
|
|
|
setRecordId(destination, copy->get());
|
|
|
|
|
|
|
|
|
|
|
|
if (type == UniversalId::Type_Reference)
|
|
|
|
if constexpr (std::is_same_v<ESXRecordT, CSMWorld::CellRef>)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CSMWorld::CellRef* ptr = (CSMWorld::CellRef*)©->mModified;
|
|
|
|
if (type == UniversalId::Type_Reference)
|
|
|
|
ptr->mRefNum.mIndex = 0;
|
|
|
|
{
|
|
|
|
|
|
|
|
CSMWorld::CellRef* ptr = (CSMWorld::CellRef*)©->mModified;
|
|
|
|
|
|
|
|
ptr->mRefNum.mIndex = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const int index = getAppendIndex(destination, type);
|
|
|
|
const int index = getAppendIndex(destination, type);
|
|
|
|
insertRecord(std::move(copy), getAppendIndex(destination, type));
|
|
|
|
insertRecord(std::move(copy), getAppendIndex(destination, type));
|
|
|
|
|
|
|
|
|
|
|
|