do not double check if record is deleted

actorid
Marek Kochanowicz 11 years ago
parent 9b56b6585b
commit bc0130f8d8

@ -205,11 +205,6 @@ namespace CSMWorld
const UniversalId::ArgumentType argumentType)
{
Record<ESXRecordT> copy = getRecord(origin);
if (copy.isDeleted())
{
return;
}
if (argumentType == UniversalId::ArgumentType_Id)
{
copy.get().mId = destination;

@ -158,5 +158,8 @@ void CSVWorld::GenericCreator::cloneMode(const std::string& originid,
mClonedType = type;
mArgumentType = argumentType;
mId->setText(QString::fromStdString(mClonedId));
if (argumentType == CSMWorld::UniversalId::ArgumentType_Id)
{
mId->setText(QString::fromStdString(mClonedId));
}
}

Loading…
Cancel
Save