Correctly NULL thumbnailPic and minimapPic when map lumpnum changes

Fixes the core part of Chengi's graphical issue
This commit is contained in:
toaster 2022-10-22 19:56:13 +01:00 committed by GenericHeroGuy
parent cbac99fb90
commit f3c9fb9c82

View file

@ -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!