From 605d1a5b1eb2576f10805b61a77aac8d33684269 Mon Sep 17 00:00:00 2001 From: Vincent Herbet Date: Sat, 25 Aug 2018 09:18:39 +0200 Subject: [PATCH] Fix callback from amx_clientcmd not working properly (#518) --- amxmodx/util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amxmodx/util.cpp b/amxmodx/util.cpp index 913e1427..8b3713dc 100755 --- a/amxmodx/util.cpp +++ b/amxmodx/util.cpp @@ -373,8 +373,8 @@ void UTIL_FakeClientCommand(edict_t *pEdict, const char *cmd, const char *arg1, { if ((*aa).matchCommandLine(cmd, arg1) && (*aa).getPlugin()->isExecutable((*aa).getFunction())) { - if (executeForwards((*aa).getFunction(), static_cast(GET_PLAYER_POINTER(pEdict)->index)), - static_cast((*aa).getFlags()), static_cast((*aa).getId()) > 0) + if (executeForwards((*aa).getFunction(), static_cast(GET_PLAYER_POINTER(pEdict)->index), + static_cast((*aa).getFlags()), static_cast((*aa).getId())) > 0) { g_fakecmd.notify = false; return;