|
|
|
@ -38,14 +38,3 @@ std::string CSMWorld::RefCollection::getNewId()
|
|
|
|
|
stream << "ref#" << mNextId++;
|
|
|
|
|
return stream.str();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CSMWorld::RefCollection::cloneRecord(const std::string& origin,
|
|
|
|
|
const std::string& destination,
|
|
|
|
|
const CSMWorld::UniversalId::Type type,
|
|
|
|
|
const CSMWorld::UniversalId::ArgumentType argumentType)
|
|
|
|
|
{
|
|
|
|
|
Record<CSMWorld::CellRef> clone(getRecord(origin));
|
|
|
|
|
clone.mState = CSMWorld::RecordBase::State_ModifiedOnly;
|
|
|
|
|
clone.get().mId = destination;
|
|
|
|
|
insertRecord(clone, getAppendIndex(destination, type), type);
|
|
|
|
|
}
|