projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40b2f36
)
Fix crash in dump() when index is a table
author
khonkhortisan
<khonkhortisan@gmail.com>
Sun, 9 Jun 2013 01:15:26 +0000
(19:15 -0600)
committer
PilzAdam
<pilzadam@minetest.net>
Sat, 15 Jun 2013 00:10:16 +0000
(
00:10
+0000)
builtin/misc_helpers.lua
patch
|
blob
|
history
diff --git
a/builtin/misc_helpers.lua
b/builtin/misc_helpers.lua
index 8b0db6c5a1f5d9125bcf1ef3b23c0b8ac5cb7634..526be0492368260c94205bc7b9948d247e25d0ac 100644
(file)
--- a/
builtin/misc_helpers.lua
+++ b/
builtin/misc_helpers.lua
@@
-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