diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-15 04:37:41 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-15 04:37:41 +0500 |
| commit | 78cdcc4273f0c0f0740bafe40443be0b4ec9fe5b (patch) | |
| tree | b1d23c156e2ab1e9f7b73d19e1acaf37d2cfb2f4 | |
| parent | c788cacf1dbd88e1fc590a79d00aa88d49d18822 (diff) | |
fix: json parsing
| -rw-r--r-- | bot/src/commands/lua.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/src/commands/lua.cpp b/bot/src/commands/lua.cpp index 748a75e..783b48b 100644 --- a/bot/src/commands/lua.cpp +++ b/bot/src/commands/lua.cpp @@ -144,7 +144,7 @@ namespace bot::command::lua { sol::table a = state->create_table(); for (int i = 0; i < j.size(); ++i) { - a[i] = parse_json_object(state, j[i]); + a[i + 1] = parse_json_object(state, j[i]); } return sol::make_object(*state, a); |
