From 9048ca53285397c3853cc3ae4b970fd0aed9f990 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 9 Oct 2008 03:21:16 +0500 Subject: Minor fix --- util/datamanager.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3