From f3c9fb9c82ac96b75080254b735b0b66a2114169 Mon Sep 17 00:00:00 2001 From: toaster Date: Sat, 22 Oct 2022 19:56:13 +0100 Subject: [PATCH] Correctly NULL thumbnailPic and minimapPic when map lumpnum changes Fixes the core part of Chengi's graphical issue --- src/p_setup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/p_setup.c b/src/p_setup.c index 31a5159dc..c40e7a823 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -9347,11 +9347,13 @@ UINT8 P_InitMapData(boolean existingmapheaders) if (mapheaderinfo[i]->thumbnailPic) { Patch_Free(mapheaderinfo[i]->thumbnailPic); + mapheaderinfo[i]->thumbnailPic = NULL; } if (mapheaderinfo[i]->minimapPic) { Patch_Free(mapheaderinfo[i]->minimapPic); + mapheaderinfo[i]->minimapPic = NULL; } // Now apply the new ones!