Skip to content

Commit

Permalink
FIX: arguments position for grip_json_serial_to_string() (In-line#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov authored Jul 8, 2022
1 parent 8e4afd0 commit 096014e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ cell AMX_NATIVE_CALL grip_json_serial_size_amxx(AMX *amx, cell *params) {
}

cell AMX_NATIVE_CALL grip_json_serial_to_string_amxx(AMX *amx, cell *params) {
enum { arg_count, arg_value, arg_pretty, arg_buffer, arg_maxlen, arg_recursion_limit };
enum { arg_count, arg_value, arg_buffer, arg_maxlen, arg_pretty, arg_recursion_limit };
ZERO_INIT_STACK_BUFFER(buffer, params[arg_maxlen]);
cell ret = grip_json_serial_to_string(amx, params[arg_value], params[arg_pretty] != 0, &buffer[0], params[arg_maxlen], params[arg_recursion_limit]);
MF_SetAmxStringSafe(amx, params[arg_buffer], &buffer[0], params[arg_maxlen]);
Expand Down

0 comments on commit 096014e

Please sign in to comment.