mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-29 08:05:50 +03:00
PF_CreateInstancedBaseline: fixed wrong check bounds. (Fixes #685)
This commit is contained in:
parent
bf58a0206d
commit
d870d6bac9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user