Fixed value check in json_object_set_value (#1015)

Regression from #983
This commit is contained in:
Hedel Nasser 2021-12-02 23:32:04 -04:00 committed by GitHub
parent 3cda059669
commit e8909c1583
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -697,7 +697,7 @@ static cell AMX_NATIVE_CALL amxx_json_object_set_value(AMX *amx, cell *params)
return 0; 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]); MF_LogError(amx, AMX_ERR_NATIVE, "Invalid JSON value! %d", params[3]);
return 0; return 0;