mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-24 14:31:02 +00:00
Limit array access for placed emblems.
(Partial merge of STJr/SRB2!1757)
This commit is contained in:
parent
07901a6364
commit
b270b67c1d
1 changed files with 1 additions and 1 deletions
|
|
@ -519,7 +519,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
|||
// Secret emblem thingy
|
||||
case MT_EMBLEM:
|
||||
{
|
||||
if (demo.playback)
|
||||
if (demo.playback || special->health > MAXEMBLEMS)
|
||||
return;
|
||||
|
||||
emblemlocations[special->health-1].collected = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue