Crash fix.

This commit is contained in:
Leonardo Zide 2020-12-23 18:30:01 -08:00
parent 2718a4253c
commit bcfbaa3080

View file

@ -3910,7 +3910,8 @@ void lcModel::EndMouseTool(lcTool Tool, bool Accept)
{ {
if (!Accept && !mIsPreview) if (!Accept && !mIsPreview)
{ {
LoadCheckPoint(mUndoHistory[0]); if (!mUndoHistory.empty())
LoadCheckPoint(mUndoHistory.front());
return; return;
} }