mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 03:51:50 +00:00
Fix possible out of bounds memory access for M_MapLocked
This commit is contained in:
parent
6545b693d4
commit
c693be47f8
1 changed files with 3 additions and 0 deletions
|
|
@ -1099,6 +1099,9 @@ boolean M_MapLocked(INT32 mapnum)
|
|||
// No skipping over any part of your marathon.
|
||||
if (marathonmode)
|
||||
return false;
|
||||
|
||||
if (!mapnum || mapnum > nummapheaders)
|
||||
return false;
|
||||
|
||||
if (!mapheaderinfo[mapnum-1])
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue