mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Return a correct index for a loaded record that was deleted
This commit is contained in:
parent
5e623a2a1d
commit
a1389b87ba
@ -61,22 +61,14 @@ namespace CSMWorld
|
||||
if (base)
|
||||
{
|
||||
removeRows (index, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
Record<ESXRecordT> baseRecord = getRecord (index);
|
||||
baseRecord.mState = RecordBase::State_Deleted;
|
||||
this->setRecord (index, baseRecord);
|
||||
return -1;
|
||||
}
|
||||
|
||||
return -1;
|
||||
Record<ESXRecordT> baseRecord = getRecord (index);
|
||||
baseRecord.mState = RecordBase::State_Deleted;
|
||||
setRecord (index, baseRecord);
|
||||
return index;
|
||||
}
|
||||
//
|
||||
//if (index != -1)
|
||||
//{
|
||||
// ESXRecordT existedRecord = getRecord(index).get();
|
||||
// IdAccessorT().getId(record) = IdAccessorT().getId(existedRecord);
|
||||
//}
|
||||
|
||||
return load (record, base, index);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user