summaryrefslogtreecommitdiff
path: root/bot/src/commands
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-04-15 04:37:41 +0500
committerilotterytea <iltsu@alright.party>2025-04-15 04:37:41 +0500
commit78cdcc4273f0c0f0740bafe40443be0b4ec9fe5b (patch)
treeb1d23c156e2ab1e9f7b73d19e1acaf37d2cfb2f4 /bot/src/commands
parentc788cacf1dbd88e1fc590a79d00aa88d49d18822 (diff)
fix: json parsing
Diffstat (limited to 'bot/src/commands')
-rw-r--r--bot/src/commands/lua.cpp2
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);