mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +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
|
// Secret emblem thingy
|
||||||
case MT_EMBLEM:
|
case MT_EMBLEM:
|
||||||
{
|
{
|
||||||
if (demo.playback)
|
if (demo.playback || special->health > MAXEMBLEMS)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
emblemlocations[special->health-1].collected = true;
|
emblemlocations[special->health-1].collected = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue