diff options
author | khonkhortisan <khonkhortisan@gmail.com> | 2013-06-08 19:15:26 -0600 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-06-15 00:10:16 +0000 |
commit | 3e4f1462bcccedddf67fa30574c5e4e740f82262 (patch) | |
tree | a92bfaa03490d10cdc7aee784d460035ad05dbd9 /builtin | |
parent | 40b2f36eb8a93557c0e0957267992534452e091f (diff) | |
download | minetest-3e4f1462bcccedddf67fa30574c5e4e740f82262.tar.gz minetest-3e4f1462bcccedddf67fa30574c5e4e740f82262.tar.bz2 minetest-3e4f1462bcccedddf67fa30574c5e4e740f82262.zip |
Fix crash in dump() when index is a table
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/misc_helpers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/misc_helpers.lua b/builtin/misc_helpers.lua index 8b0db6c5a..526be0492 100644 --- 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 |