mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix crash in dump() when index is a table
This commit is contained in:
parent
40b2f36eb8
commit
3e4f1462bc
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ function dump(o, dumped)
|
|||
dumped[o] = true
|
||||
local t = {}
|
||||
for k,v in pairs(o) do
|
||||
t[#t+1] = "" .. k .. " = " .. dump(v, dumped)
|
||||
t[#t+1] = "" .. dump(k, dumped) .. " = " .. dump(v, dumped)
|
||||
end
|
||||
return "{" .. table.concat(t, ", ") .. "}"
|
||||
elseif type(o) == "boolean" then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue