Skip to content

Commit

Permalink
Update table.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Musiker15 committed Sep 22, 2024
1 parent f03b986 commit 58971b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/table.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 58971b3

Please sign in to comment.