Commit bf18782a authored by 未闻皂名's avatar 未闻皂名

2024/8/8 尝试修复ForEach的问题

parent 9033ed8b
Pipeline #29035 passed with stages
in 7 minutes and 31 seconds
......@@ -185,3 +185,14 @@ function RushDuel.FlatCheck(check, ...)
end
return false
end
-- 重载 ForEach
if not Group.ForEach then
Group.ForEach = function(g, func, ...)
local tc = g:GetFirst()
while tc do
func(tc, ...)
tc = g:GetNext()
end
end
end
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