mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
Fix undo-redo crash
This commit is contained in:
parent
890ce1eefb
commit
de3497d291
@ -173,8 +173,8 @@ const std::string& CSMWorld::TouchLandCommand::getDestinationId() const
|
||||
|
||||
void CSMWorld::TouchLandCommand::onRedo()
|
||||
{
|
||||
mOld.reset(mLands.getRecord(mId).clone().get());
|
||||
mChanged = mLands.touchRecord(mId);
|
||||
if (mChanged) mOld.reset(mLands.getRecord(mId).clone().get());
|
||||
}
|
||||
|
||||
void CSMWorld::TouchLandCommand::onUndo()
|
||||
|
Loading…
Reference in New Issue
Block a user