util/serialization.lua
changeset 2222 81b4e738e4d3
parent 2149 603134825bdb
child 2923 b7049746bd29
--- a/util/serialization.lua	Wed Nov 25 19:58:19 2009 +0000
+++ b/util/serialization.lua	Wed Nov 25 23:45:45 2009 +0000
@@ -35,7 +35,7 @@
 	elseif type(o) == "string" then
 		func(t, (("%q"):format(o):gsub("\\\n", "\\n")));
 	elseif type(o) == "table" then
-		if next(o) then
+		if next(o) ~= nil then
 			func(t, "{\n");
 			for k,v in pairs(o) do
 				func(t, indent(ind));