From df308cf365feaffeb51afbeeb1dccfac98d927b3 Mon Sep 17 00:00:00 2001 From: Buduf Date: Thu, 30 Jun 2022 11:35:20 +0200 Subject: [PATCH] fix stackoverflow --- printTable.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/printTable.lua b/printTable.lua index 50fe639..57a587e 100644 --- a/printTable.lua +++ b/printTable.lua @@ -1,7 +1,7 @@ local function _printTable(table, s, tabs) for key, value in pairs(table) do if type(value) == "table" then - _printTable(table, "", tabs + 1) + _printTable(value, "", tabs + 1) else print(string.rep(' ', tabs), key, value) end