Skip to content

Commit

Permalink
Don't deep copy tables that are keys (Fixes #152)
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed May 27, 2023
1 parent ad123e6 commit 31bdd7c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libs/StatLogic/StatLogic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,6 @@ local function copyTable(to, from)
to = new()
end
for k,v in pairs(from) do
if type(k) == "table" then
k = copyTable(new(), k)
end
if type(v) == "table" then
v = copyTable(new(), v)
end
Expand Down

0 comments on commit 31bdd7c

Please sign in to comment.