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
parent 1fbd5655f5
commit accb88869d

View file

@ -363,12 +363,6 @@ static void P_ClearSingleMapHeaderInfo(INT16 i)
{
const INT16 num = (INT16)(i-1);
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;