mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-26 08:26:31 +00:00
M_DrawPause: fix iterating beyond bounds of menuitems
This commit is contained in:
parent
91a6bcf8be
commit
a469cebef7
1 changed files with 1 additions and 1 deletions
|
|
@ -4011,7 +4011,7 @@ void M_DrawPause(void)
|
|||
|
||||
|
||||
i++; // Regardless of whether we drew or not, go to the next item in the menu.
|
||||
if (i > currentMenu->numitems)
|
||||
if (i >= currentMenu->numitems)
|
||||
{
|
||||
i = 0;
|
||||
while (!(currentMenu->menuitems[i].status & IT_DISPLAY))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue