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
parent e5365339da
commit b686137d12

View file

@ -4506,11 +4506,13 @@ UINT8 P_InitMapData(INT32 numexistingmapheaders)
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!