fix stackoverflow

This commit is contained in:
Buduf 2022-06-30 11:35:20 +02:00
parent 08182e1d04
commit df308cf365

View File

@ -1,7 +1,7 @@
local function _printTable(table, s, tabs) local function _printTable(table, s, tabs)
for key, value in pairs(table) do for key, value in pairs(table) do
if type(value) == "table" then if type(value) == "table" then
_printTable(table, "", tabs + 1) _printTable(value, "", tabs + 1)
else else
print(string.rep(' ', tabs), key, value) print(string.rep(' ', tabs), key, value)
end end