mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix pageno if greater than permitted
This commit is contained in:
parent
d25e59535c
commit
e0412ab851
1 changed files with 4 additions and 0 deletions
|
|
@ -3554,6 +3554,10 @@ static void M_LevelListFromGametype(INT16 gt)
|
|||
}
|
||||
|
||||
cupgrid.numpages = (highestunlockedid / (CUPMENU_COLUMNS * CUPMENU_ROWS)) + 1;
|
||||
if (cupgrid.pageno >= cupgrid.numpages)
|
||||
{
|
||||
cupgrid.pageno = 0;
|
||||
}
|
||||
|
||||
PLAY_LevelSelectDef.prevMenu = &PLAY_CupSelectDef;
|
||||
M_SetupNextMenu(&PLAY_CupSelectDef, false);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue