From d870d6bac9714727cb739c31cdb63677ac20422c Mon Sep 17 00:00:00 2001 From: s1lent Date: Fri, 13 Sep 2019 07:03:52 +0700 Subject: [PATCH] PF_CreateInstancedBaseline: fixed wrong check bounds. (Fixes #685) --- rehlds/engine/pr_cmds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rehlds/engine/pr_cmds.cpp b/rehlds/engine/pr_cmds.cpp index b3f1fac..b1ef97f 100644 --- a/rehlds/engine/pr_cmds.cpp +++ b/rehlds/engine/pr_cmds.cpp @@ -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;