From 4a8f96353641e49cd300eac4cf128ae5d4a3042f Mon Sep 17 00:00:00 2001 From: LightCat Date: Tue, 21 Aug 2018 20:50:19 +0200 Subject: [PATCH] this is so sad --- src/hacks/NavBot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hacks/NavBot.cpp b/src/hacks/NavBot.cpp index f82e181e..28ed0a1a 100644 --- a/src/hacks/NavBot.cpp +++ b/src/hacks/NavBot.cpp @@ -58,7 +58,7 @@ bool HasLowAmmo() { int *weapon_list = (int *) ((unsigned) (RAW_ENT(LOCAL_E)) + netvar.hMyWeapons); - if (g_pLocalPlayer->holding_sniper_rifle && NET_INT(LOCAL_W, netvar.m_iAmmo + 4) <= 5) + if (g_pLocalPlayer->holding_sniper_rifle && CE_INT(LOCAL_W, netvar.m_iAmmo + 4) <= 5) return true; for (int i = 0; weapon_list[i]; i++) {