2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-28 15:45:46 +03:00

PF_CreateInstancedBaseline: fixed wrong check bounds. (Fixes #685)

This commit is contained in:
s1lent 2019-09-13 07:03:52 +07:00
parent bf58a0206d
commit d870d6bac9

View File

@ -2627,7 +2627,7 @@ void EXT_FUNC PF_SetGroupMask(int mask, int op)
int EXT_FUNC PF_CreateInstancedBaseline(int classname, struct entity_state_s *baseline)
{
extra_baselines_t *bls = g_psv.instance_baselines;
if (bls->number >= NUM_BASELINES)
if (bls->number >= NUM_BASELINES - 1)
return 0;
bls->classname[bls->number] = classname;