diff options
Diffstat (limited to 'util/datamanager.lua')
-rw-r--r-- | util/datamanager.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua index 43e23dc3..754c5620 100644 --- a/util/datamanager.lua +++ b/util/datamanager.lua @@ -6,6 +6,7 @@ local loadfile, setfenv, pcall = loadfile, setfenv, pcall; local log = log; local io_open = io.open; local tostring = tostring; +local error = error; module "datamanager" @@ -49,6 +50,8 @@ local function simplesave (f, o) f:write(",\n") end f:write("}\n") + elseif type(o) == "boolean" then + f:write(o and "true" or "false"); else error("cannot serialize a " .. type(o)) end |