Fix for saving tables with non-string keys

This commit is contained in:
Matthew Wild 2008-10-08 22:42:51 +01:00
parent 584b40a682
commit d90bbc6293

View file

@ -43,7 +43,7 @@ local function simplesave (f, o)
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