Don't strip previous thumbnail/minimap information on header replace, since the lumpnum will remain the same otherwise

This commit is contained in:
toaster 2022-09-17 00:43:26 +01:00 committed by GenericHeroGuy
parent f8b4ad70ea
commit bda189ac5b

View file

@ -398,12 +398,6 @@ static void P_ClearSingleMapHeaderInfo(INT16 i)
const INT16 num = (INT16)(i-1);
boolean exists = (mapheaderinfo[gamemap-1]->alreadyExists == true);
Patch_Free(mapheaderinfo[num]->thumbnailPic);
mapheaderinfo[num]->thumbnailPic = NULL;
Patch_Free(mapheaderinfo[num]->minimapPic);
mapheaderinfo[num]->minimapPic = NULL;
Z_Free(mapheaderinfo[num]->nextlevel);
mapheaderinfo[num]->nextlevel = NULL;