Changeset

2223:458da843020f

Merge with 0.6
author Matthew Wild <mwild1@gmail.com>
date Wed, 25 Nov 2009 23:46:58 +0000
parents 2221:7ddd24d8260c (current diff) 2222:81b4e738e4d3 (diff)
children 2224:f2f0f9103c26
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/serialization.lua	Wed Nov 25 19:59:16 2009 +0000
+++ b/util/serialization.lua	Wed Nov 25 23:46:58 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));