Wed, 08 Oct 2008 22:42:51 +0100
Fix for saving tables with non-string keys
util/datamanager.lua | file | annotate | diff | comparison | revisions |
--- a/util/datamanager.lua Wed Oct 08 17:27:20 2008 +0100 +++ b/util/datamanager.lua Wed Oct 08 22:42:51 2008 +0100 @@ -43,7 +43,7 @@ elseif type(o) == "table" then f:write("{\n") for k,v in pairs(o) do - f:write(" [", format("%q", k), "] = ") + f:write(" [", basicSerialize(k), "] = ") simplesave(f, v) f:write(",\n") end