mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-02 12:24:11 -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.
|
--- Completely removes all marked Entities in the Instance.
|
||||||
-- @return self
|
-- @return self
|
||||||
function Instance:flush()
|
function Instance:flush()
|
||||||
self.toRemove = self.removed
|
while #self.removed > 0 do
|
||||||
self.removed = {}
|
self.toRemove = self.removed
|
||||||
|
self.removed = {}
|
||||||
|
|
||||||
if #self.toRemove > 0 then
|
|
||||||
for i = 1, #self.toRemove do
|
for i = 1, #self.toRemove do
|
||||||
local e = self.toRemove[i]
|
local e = self.toRemove[i]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue