Skip to content
Snippets Groups Projects
Commit c50406f8 authored by dg's avatar dg
Browse files

Fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@1151 51575b47-30f0-44d4-a5cc-537603b46e54
parent 9a6c46f8
No related branches found
No related tags found
No related merge requests found
......@@ -115,18 +115,17 @@ local function clonerecursfull(clonetable, d, allow_cloned)
for k, e in pairs(d) do
local nk, ne = k, e
if clonetable[k] then nk = clonetable[k]
elseif type(k) == "table" then nk = clonerecursfull(clonetable, k)
end
if clonetable[e] then ne = clonetable[e]
elseif type(e) == "table" then ne = clonerecursfull(clonetable, e)
elseif type(e) == "table" and (type(k) ~= "string" or k ~= "__threads") then ne = clonerecursfull(clonetable, e)
end
n[nk] = ne
end
setmetatable(n, getmetatable(d))
if n.cloned then n:cloned(d) end
if n.cloned and n.__CLASSNAME then n:cloned(d) end
return n
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment