From f3df28698533f106fbb380648c20abe828e71cb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Lo=20Giudice?= Date: Tue, 14 Jul 2015 10:40:16 -0300 Subject: [PATCH] Fix CS_OnBuyAttempt If i dont have CS_OnBuy on my plugin, CS_OnBuyAttempt doen't work --- modules/cstrike/cstrike/amxx_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cstrike/cstrike/amxx_api.cpp b/modules/cstrike/cstrike/amxx_api.cpp index 8f907bc1..4fcefc13 100644 --- a/modules/cstrike/cstrike/amxx_api.cpp +++ b/modules/cstrike/cstrike/amxx_api.cpp @@ -76,7 +76,7 @@ void OnPluginsLoaded() if (!UTIL_CheckForPublic("CS_OnBuyAttempt")) { ForwardOnBuyAttempt = -1; } // And enable/disable detours when necessary. - ToggleDetour_ClientCommands(ForwardInternalCommand != -1 || ForwardOnBuy != -1 || ForwardOnBuy != -1); + ToggleDetour_ClientCommands(ForwardInternalCommand != -1 || ForwardOnBuy != -1 || ForwardOnBuyAttempt != -1); ToggleDetour_BuyCommands(ForwardOnBuy != -1); // Search pev offset automatically.