fixed dynamic ExecuteForward not returning a valid result and patching the forward id

This commit is contained in:
Borja Ferrer 2006-03-10 19:04:04 +00:00
parent a9684fb81d
commit 2e0dcb860a

View File

@ -3834,7 +3834,7 @@ static cell AMX_NATIVE_CALL ExecuteForward(AMX *amx, cell *params)
int id = static_cast<int>(params[1]); int id = static_cast<int>(params[1]);
int str_id = 0; int str_id = 0;
int len; int len;
cell *addr = get_amxaddr(amx, params[1]); cell *addr = get_amxaddr(amx, params[2]);
if (!g_forwards.isIdValid(id)) if (!g_forwards.isIdValid(id))
return 0; return 0;