mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixed value check in json_object_set_value (#1015)
Regression from #983
This commit is contained in:
parent
3cda059669
commit
e8909c1583
@ -697,7 +697,7 @@ static cell AMX_NATIVE_CALL amxx_json_object_set_value(AMX *amx, cell *params)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!JsonMngr->IsValidHandle(params[3], Handle_Object))
|
||||
if (!JsonMngr->IsValidHandle(params[3]))
|
||||
{
|
||||
MF_LogError(amx, AMX_ERR_NATIVE, "Invalid JSON value! %d", params[3]);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user