mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +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
|
|
@ -1100,6 +1100,9 @@ boolean M_MapLocked(INT32 mapnum)
|
||||||
if (marathonmode)
|
if (marathonmode)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (!mapnum || mapnum > nummapheaders)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (!mapheaderinfo[mapnum-1])
|
if (!mapheaderinfo[mapnum-1])
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue