mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-16 16:20:53 +00:00
Fix crash when repeatedly performing delete/undo due to empty moved record.
- introduced in commit 23e7e3c165bb2631f9d8eb298f86da862e91cefa
This commit is contained in:
parent
226f7b6928
commit
edf4e6ff95
@ -144,6 +144,7 @@ void CSMWorld::RevertCommand::redo()
|
||||
|
||||
if (state==RecordBase::State_ModifiedOnly)
|
||||
{
|
||||
mOld = std::move(mModel.getRecord (mId).clone());
|
||||
mModel.removeRows (index.row(), 1);
|
||||
}
|
||||
else
|
||||
@ -179,6 +180,7 @@ void CSMWorld::DeleteCommand::redo()
|
||||
|
||||
if (state==RecordBase::State_ModifiedOnly)
|
||||
{
|
||||
mOld = std::move(mModel.getRecord (mId).clone());
|
||||
mModel.removeRows (index.row(), 1);
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user