mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 22:52:25 +01:00
Fix crash in dump() when index is a table
This commit is contained in:
parent
40b2f36eb8
commit
3e4f1462bc
@ -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…
Reference in New Issue
Block a user