mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
do not double check if record is deleted
This commit is contained in:
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…
Reference in New Issue
Block a user