mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 18:37:44 +02:00
Fix remove several children components
This commit is contained in:
parent
283f2957ff
commit
89830a830e
@ -206,7 +206,7 @@ function DruidInstance.remove(self, component)
|
||||
|
||||
-- Recursive remove all children of component
|
||||
local children = component._meta.children
|
||||
for i = 1, #children do
|
||||
for i = #children, 1, -1do
|
||||
self:remove(children[i])
|
||||
local parent = children[i]:get_parent_component()
|
||||
if parent then
|
||||
|
Loading…
x
Reference in New Issue
Block a user