table copy improvements

This commit is contained in:
Tercio Jose
2022-03-09 16:02:55 -03:00
parent 92e138ed09
commit ade373ff10
5 changed files with 76 additions and 35 deletions
+5
View File
@@ -344,6 +344,11 @@ function DF.table.copy (t1, t2)
for key, value in pairs (t2) do
if (key ~= "__index") then
if (type (value) == "table") then
--if (SAVINGDATA) then
-- tinsert (_detalhes_global.exit_log, "copy loop key: " .. key)
--end
t1 [key] = t1 [key] or {}
DF.table.copy (t1 [key], t2 [key])
else