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:
helixhorned 2012-03-04 20:14:01 +00:00
parent 5791d5e068
commit fbbefc0df9

View file

@ -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);
}
}
}