mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-01 20:03:55 -04:00
Allowed for recursive removal
This commit is contained in:
parent
acc5830cc6
commit
6954b112e9
1 changed files with 3 additions and 3 deletions
|
@ -70,10 +70,10 @@ end
|
|||
--- Completely removes all marked Entities in the Instance.
|
||||
-- @return self
|
||||
function Instance:flush()
|
||||
self.toRemove = self.removed
|
||||
self.removed = {}
|
||||
while #self.removed > 0 do
|
||||
self.toRemove = self.removed
|
||||
self.removed = {}
|
||||
|
||||
if #self.toRemove > 0 then
|
||||
for i = 1, #self.toRemove do
|
||||
local e = self.toRemove[i]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue