From 7c2193e41772c4f672af8f23dbf158565da2aa11 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 24 Aug 2017 19:30:44 +0200 Subject: [PATCH] Initialize weapon_accuracy array to the default value on client start --- qcsrc/client/main.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcsrc/client/main.qc b/qcsrc/client/main.qc index 64b340622..adc2ae7bd 100644 --- a/qcsrc/client/main.qc +++ b/qcsrc/client/main.qc @@ -152,6 +152,9 @@ void CSQC_Init() GetTeam(NUM_SPECTATOR, true); // add specs first + for (int w = 0; w <= WEP_LAST - WEP_FIRST; ++w) + weapon_accuracy[w] = -1; + // precaches if(autocvar_cl_reticle) -- 2.39.2