1
0
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:
unelsson 2021-08-22 23:41:46 +03:00
parent 890ce1eefb
commit de3497d291

View File

@ -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()