Fix callback from amx_clientcmd not working properly (#518)

This commit is contained in:
Vincent Herbet 2018-08-25 09:18:39 +02:00 committed by GitHub
parent ac57ed5b44
commit 605d1a5b1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ((*aa).matchCommandLine(cmd, arg1) && (*aa).getPlugin()->isExecutable((*aa).getFunction()))
{ {
if (executeForwards((*aa).getFunction(), static_cast<cell>(GET_PLAYER_POINTER(pEdict)->index)), if (executeForwards((*aa).getFunction(), static_cast<cell>(GET_PLAYER_POINTER(pEdict)->index),
static_cast<cell>((*aa).getFlags()), static_cast<cell>((*aa).getId()) > 0) static_cast<cell>((*aa).getFlags()), static_cast<cell>((*aa).getId())) > 0)
{ {
g_fakecmd.notify = false; g_fakecmd.notify = false;
return; return;