mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-26 06:45:37 +03:00
fixed dynamic ExecuteForward not returning a valid result and patching the forward id
This commit is contained in:
parent
a9684fb81d
commit
2e0dcb860a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user