Commit 7c9321f2 authored by GuGu's avatar GuGu

Update Gds.lua

parent d2367b2d
Pipeline #32921 passed with stage
in 26 seconds
...@@ -224,7 +224,7 @@ function Gds.AdjustFieldInfoCheckMI(g, preg, e) ...@@ -224,7 +224,7 @@ function Gds.AdjustFieldInfoCheckMI(g, preg, e)
end end
if isChange then if isChange then
lasts = Nef.DeepCopy(ms) lasts = Gds.DeepCopy(ms)
end end
end end
...@@ -267,4 +267,15 @@ function Gds.AFIFindLastMI(c) ...@@ -267,4 +267,15 @@ function Gds.AFIFindLastMI(c)
end end
end end
return -1, -1 return -1, -1
end
function Gds.DeepCopy(tbl)
local t = {}
for k, v in pairs(tbl) do
if type(v) == "table" then
t[k] = Gds.DeepCopy(v)
else
t[k] = v
end
end
return t
end end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment