diff options
-rw-r--r-- | util/datamanager.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua index 2f5be002..1deb6b3d 100644 --- a/util/datamanager.lua +++ b/util/datamanager.lua @@ -5,6 +5,7 @@ local char = string.char; local loadfile, setfenv, pcall = loadfile, setfenv, pcall; local log = log; local io_open = io.open; +local tostring = tostring; module "datamanager" @@ -30,7 +31,7 @@ local function basicSerialize (o) if type(o) == "number" or type(o) == "boolean" then return tostring(o) else -- assume it is a string - return string.format("%q", tostring(o)) + return format("%q", tostring(o)) end end |