diff --git a/shared/table.lua b/shared/table.lua index c80b62c..05c6d6c 100644 --- a/shared/table.lua +++ b/shared/table.lua @@ -99,10 +99,10 @@ exports('TableReverse', MSK.Table.Reverse) MSK.Table.Clone = function(tbl) assert(tbl and type(tbl) == 'table', 'Parameter "tbl" has to be a table on function MSK.Table.Clone') - local metatable = getmetatable(t) + local metatable = getmetatable(tbl) local clone = {} - for k, v in pairs(t) do + for k, v in pairs(tbl) do if type(v) == 'table' then target[k] = MSK.Table.Clone(v) else