From 61a8f122f07d43b651c881acd37dadf669d711ca Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 12 Apr 2019 18:20:27 +0300 Subject: [PATCH] - fixed crash caused by broken saved game picture https://forum.zdoom.org/viewtopic.php?t=64244 --- src/menu/loadsavemenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/menu/loadsavemenu.cpp b/src/menu/loadsavemenu.cpp index 7c09013a4..a21818f54 100644 --- a/src/menu/loadsavemenu.cpp +++ b/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;