mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
sector.c: fix a possible oob access of a local array.
git-svn-id: https://svn.eduke32.com/eduke32@2411 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
5791d5e068
commit
fbbefc0df9
1 changed files with 2 additions and 1 deletions
|
@ -2711,7 +2711,8 @@ CHECKINV1:
|
|||
{
|
||||
static const int32_t i[8] = { QUOTE_MEDKIT, QUOTE_STEROIDS, QUOTE_HOLODUKE,
|
||||
QUOTE_JETPACK, QUOTE_NVG, QUOTE_SCUBA, QUOTE_BOOTS, 0 };
|
||||
P_DoQuote(i[dainv-1], p);
|
||||
if (dainv>=1 && dainv<=9)
|
||||
P_DoQuote(i[dainv-1], p);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue