From c7340ef43a4643d5ab190594d722708aaacb20a9 Mon Sep 17 00:00:00 2001 From: Sam V Date: Thu, 2 Dec 2021 00:33:47 +0100 Subject: [PATCH] Reserve enough entvars for all weapons + local player in client weapon prediction code Resolves #97 --- cl_dll/hl/hl_weapons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_dll/hl/hl_weapons.cpp b/cl_dll/hl/hl_weapons.cpp index 275936be9..cbc8c18fb 100644 --- a/cl_dll/hl/hl_weapons.cpp +++ b/cl_dll/hl/hl_weapons.cpp @@ -33,7 +33,7 @@ extern int g_iUser1; // Pool of client side entities/entvars_t -static entvars_t ev[MAX_WEAPONS]; +static entvars_t ev[MAX_WEAPONS + 1]; static int num_ents = 0; // The entity we'll use to represent the local client