Don't select a map - whether random (voting screen, randommap command, etc) or specific (map command) if it has no associated lump.

This commit is contained in:
toaster 2022-09-17 14:08:11 +01:00 committed by GenericHeroGuy
parent b92c125928
commit 4c109c7161

View file

@ -3514,7 +3514,7 @@ tryagain:
{
boolean isokmap = true;
if (!mapheaderinfo[ix])
if (!mapheaderinfo[ix] || mapheaderinfo[ix]->lumpnum == LUMPERROR)
continue;
if ((mapheaderinfo[ix]->typeoflevel & tolflags) != tolflags