Skip to content
Permalink
Browse files

- fixed crash caused by broken saved game picture

  • Loading branch information...
alexey-lysiuk committed Apr 12, 2019
1 parent c0b322c commit 61a8f122f07d43b651c881acd37dadf669d711ca
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/menu/loadsavemenu.cpp
@@ -499,7 +499,7 @@ unsigned FSavegameManager::ExtractSaveData(int index)
{
SavePic = PNGTexture_CreateFromFile(png, node->Filename);
delete png;
if (SavePic->GetDisplayWidth() == 1 && SavePic->GetDisplayHeight() == 1)
if (SavePic && SavePic->GetDisplayWidth() == 1 && SavePic->GetDisplayHeight() == 1)
{
delete SavePic;
SavePic = nullptr;

0 comments on commit 61a8f12

Please sign in to comment.
You can’t perform that action at this time.