Skip to content

Commit 363871a

Browse files
authored
Fixed value check in json_object_set_value (#1023)
Same fix as #1015, but for 1.9
1 parent 8e8dfa3 commit 363871a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/json/JsonNatives.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ static cell AMX_NATIVE_CALL amxx_json_object_set_value(AMX *amx, cell *params)
697697
return 0;
698698
}
699699

700-
if (!JsonMngr->IsValidHandle(params[3], Handle_Object))
700+
if (!JsonMngr->IsValidHandle(params[3]))
701701
{
702702
MF_LogError(amx, AMX_ERR_NATIVE, "Invalid JSON value! %d", params[3]);
703703
return 0;

0 commit comments

Comments
 (0)