mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +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)
|
const UniversalId::ArgumentType argumentType)
|
||||||
{
|
{
|
||||||
Record<ESXRecordT> copy = getRecord(origin);
|
Record<ESXRecordT> copy = getRecord(origin);
|
||||||
if (copy.isDeleted())
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (argumentType == UniversalId::ArgumentType_Id)
|
if (argumentType == UniversalId::ArgumentType_Id)
|
||||||
{
|
{
|
||||||
copy.get().mId = destination;
|
copy.get().mId = destination;
|
||||||
|
@ -158,5 +158,8 @@ void CSVWorld::GenericCreator::cloneMode(const std::string& originid,
|
|||||||
mClonedType = type;
|
mClonedType = type;
|
||||||
mArgumentType = argumentType;
|
mArgumentType = argumentType;
|
||||||
|
|
||||||
mId->setText(QString::fromStdString(mClonedId));
|
if (argumentType == CSMWorld::UniversalId::ArgumentType_Id)
|
||||||
|
{
|
||||||
|
mId->setText(QString::fromStdString(mClonedId));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user