Skip to content
Snippets Groups Projects
Commit 3e4f1462 authored by khonkhortisan's avatar khonkhortisan Committed by PilzAdam
Browse files

Fix crash in dump() when index is a table

parent 40b2f36e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment