mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- fixed crash caused by broken saved game picture
https://forum.zdoom.org/viewtopic.php?t=64244
This commit is contained in:
parent
c0b322c51a
commit
61a8f122f0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue