aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/yuescript/yuescript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuescript/yuescript.cpp b/src/yuescript/yuescript.cpp
index 1a1752c..b5043e0 100644
--- a/src/yuescript/yuescript.cpp
+++ b/src/yuescript/yuescript.cpp
@@ -258,7 +258,7 @@ static int yuetoast(lua_State* L) {
258 } 258 }
259 case 1: { 259 case 1: {
260 if (flattenLevel > 1 || (flattenLevel == 1 && !current.hasSep)) { 260 if (flattenLevel > 1 || (flattenLevel == 1 && !current.hasSep)) {
261 lua_rawgeti(L, tableIndex, 1); 261 lua_rawgeti(L, tableIndex, lua_objlen(L, tableIndex) + 1);
262 getName(node); 262 getName(node);
263 lua_rawseti(L, -2, 1); 263 lua_rawseti(L, -2, 1);
264 lua_pushinteger(L, node->m_begin.m_line); 264 lua_pushinteger(L, node->m_begin.m_line);