mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-01 19:11:22 +00:00
Fix undo-redo crash
This commit is contained in:
parent
890ce1eefb
commit
de3497d291
1 changed files with 1 additions and 1 deletions
|
@ -173,8 +173,8 @@ const std::string& CSMWorld::TouchLandCommand::getDestinationId() const
|
||||||
|
|
||||||
void CSMWorld::TouchLandCommand::onRedo()
|
void CSMWorld::TouchLandCommand::onRedo()
|
||||||
{
|
{
|
||||||
mOld.reset(mLands.getRecord(mId).clone().get());
|
|
||||||
mChanged = mLands.touchRecord(mId);
|
mChanged = mLands.touchRecord(mId);
|
||||||
|
if (mChanged) mOld.reset(mLands.getRecord(mId).clone().get());
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSMWorld::TouchLandCommand::onUndo()
|
void CSMWorld::TouchLandCommand::onUndo()
|
||||||
|
|
Loading…
Reference in a new issue