Skip to content

Commit

Permalink
Fixed value check in json_object_set_value (#1023)
Browse files Browse the repository at this point in the history
Same fix as #1015, but for 1.9
  • Loading branch information
Th3-822 committed Dec 3, 2021
1 parent 8e8dfa3 commit 363871a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/json/JsonNatives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 363871a

Please sign in to comment.