Fix wml.remove_children
This commit is contained in:
parent
16157e286b
commit
845067d7e8
1 changed files with 2 additions and 2 deletions
|
@ -123,8 +123,8 @@ end
|
|||
--! Removes all matching child tags from @a cfg
|
||||
function wml.remove_children(cfg, ...)
|
||||
for i = #cfg, 1, -1 do
|
||||
for _,v in ipairs(...) do
|
||||
if cfg[i] == v then
|
||||
for j = 1, select('#', ...) do
|
||||
if cfg[i] and cfg[i][1] == select(j, ...) then
|
||||
table.remove(cfg, i)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue