Fix 'l' crash

This commit is contained in:
jacob1 2019-07-24 00:43:48 -04:00
parent 4383de7ad5
commit c696a11793

View File

@ -1618,6 +1618,8 @@ void GameView::OnKeyPress(int key, int scan, bool repeat, bool shift, bool ctrl,
if (stampList.size())
{
SaveFile *saveFile = Client::Ref().GetStamp(stampList[0]);
if (!saveFile || !saveFile->GetGameSave())
break;
c->LoadStamp(saveFile->GetGameSave());
delete saveFile;
selectPoint1 = selectPoint2 = mousePosition;