From dbf60e3dc5bf4192dd5a3a9858544a1f14043521 Mon Sep 17 00:00:00 2001 From: Nico Prins Date: Tue, 5 May 2015 09:26:52 -0700 Subject: [PATCH] Fixed include helper skipping falsy values. --- class.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class.lua b/class.lua index 20319f0..184c925 100644 --- a/class.lua +++ b/class.lua @@ -36,7 +36,7 @@ local function include_helper(to, from, seen) seen[from] = to for k,v in pairs(from) do k = include_helper({}, k, seen) -- keys might also be tables - if not to[k] then + if to[k] == nil then to[k] = include_helper({}, v, seen) end end