From 78cdcc4273f0c0f0740bafe40443be0b4ec9fe5b Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Tue, 15 Apr 2025 04:37:41 +0500 Subject: fix: json parsing --- bot/src/commands/lua.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3