M_LevelListFromGametype: Fix invalid Tutorial-specific behaviour

This commit is contained in:
toaster 2023-12-10 15:21:51 +00:00
parent 97f39abef3
commit de7d53b4ea

View file

@ -586,10 +586,14 @@ boolean M_LevelListFromGametype(INT16 gt)
possiblecursor++;
}
if (test != NEXTMAP_INVALID)
if (test < nummapheaders)
{
levellist.cursor = possiblecursor;
invalidatedcursor = false;
}
}
else if (invalidatedcursor)
if (invalidatedcursor)
{
levellist.cursor = 0;
}