Fix 'l' crash
This commit is contained in:
parent
4383de7ad5
commit
c696a11793
@ -1618,6 +1618,8 @@ void GameView::OnKeyPress(int key, int scan, bool repeat, bool shift, bool ctrl,
|
|||||||
if (stampList.size())
|
if (stampList.size())
|
||||||
{
|
{
|
||||||
SaveFile *saveFile = Client::Ref().GetStamp(stampList[0]);
|
SaveFile *saveFile = Client::Ref().GetStamp(stampList[0]);
|
||||||
|
if (!saveFile || !saveFile->GetGameSave())
|
||||||
|
break;
|
||||||
c->LoadStamp(saveFile->GetGameSave());
|
c->LoadStamp(saveFile->GetGameSave());
|
||||||
delete saveFile;
|
delete saveFile;
|
||||||
selectPoint1 = selectPoint2 = mousePosition;
|
selectPoint1 = selectPoint2 = mousePosition;
|
||||||
|
Loading…
Reference in New Issue
Block a user