From 4c109c7161cd0c8c8eaa99154d3eb7106c74723f Mon Sep 17 00:00:00 2001 From: toaster Date: Sat, 17 Sep 2022 14:08:11 +0100 Subject: [PATCH] Don't select a map - whether random (voting screen, randommap command, etc) or specific (map command) if it has no associated lump. --- src/g_game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_game.c b/src/g_game.c index 2e0716c20..74f6667bd 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -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