Fix usage of levellist.typeoflevel in M_GetNextLevelInList

This commit is contained in:
toaster 2022-12-18 12:26:28 +00:00
parent 286331b5c9
commit 7ff46e31b4

View file

@ -3453,7 +3453,7 @@ INT16 M_GetNextLevelInList(INT16 map, UINT8 *i, UINT32 tol, cupheader_t *cup)
else
{
map++;
while (!M_CanShowLevelInList(map, levellist.typeoflevel) && map < nummapheaders)
while (!M_CanShowLevelInList(map, tol) && map < nummapheaders)
map++;
}