From c696a117936ff4466a706678e2df2320c5c753e7 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Wed, 24 Jul 2019 00:43:48 -0400 Subject: [PATCH] Fix 'l' crash --- src/gui/game/GameView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index a7ad30933..80fda6d11 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -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;