aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/serialization.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/serialization.lua b/util/serialization.lua
index 960794f2..5a8eef81 100644
--- a/util/serialization.lua
+++ b/util/serialization.lua
@@ -142,7 +142,7 @@ local function new(opt)
if freeze then
-- opportunity to do pre-serialization
local mt = getmetatable(t);
- local fr = (freeze ~= true and freeze[mt]);
+ local fr = (type(freeze) == "table" and freeze[mt]);
local mf = mt and mt.__freeze;
local tag;
if type(fr) == "string" then