Fixed value check in json_object_set_value (#1023)

Same fix as #1015, but for 1.9
This commit is contained in:
Hedel Nasser 2021-12-03 19:53:29 -04:00 committed by GitHub
parent 8e8dfa33ed
commit 363871a860
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;
}
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;