From a3d048880f730745a1fdcbeedada921e7a2950ce Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 29 Aug 2004 17:15:32 +0000 Subject: [PATCH] oops --- amxmodx/amxmodx.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/amxmodx/amxmodx.cpp b/amxmodx/amxmodx.cpp index 6044cbd0..d72d550c 100755 --- a/amxmodx/amxmodx.cpp +++ b/amxmodx/amxmodx.cpp @@ -1678,11 +1678,11 @@ static cell AMX_NATIVE_CALL set_task(AMX *amx, cell *params) /* 2 param */ if (params[5]) { - iFunc = registerSPForwardByName(amx, stemp, FP_ARRAY, FP_CELL, FP_DONE); + iFunc = registerSPForwardByName(amx, stemp, FP_ARRAY, FP_CELL, FP_DONE); } else { - iFunc = registerSPForwardByName(amx, stemp, FP_CELL, FP_DONE); + iFunc = registerSPForwardByName(amx, stemp, FP_CELL, FP_DONE); } - if (!iFunc) + if (iFunc == -1) { AMXXLOG_Log("[AMXX] Function is not present (function \"%s\") (plugin \"%s\")",stemp,plugin->getName() ); amx_RaiseError(amx,AMX_ERR_NATIVE);