mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-31 11:41:51 +02:00
Fix 'l' crash
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user