mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 05:53:50 +00:00
do not double check if record is deleted
This commit is contained in:
parent
9b56b6585b
commit
bc0130f8d8
2 changed files with 4 additions and 6 deletions
|
@ -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 a new issue