mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 11:19:17 +00:00
Merge 74c6a35352
into 24dddee82e
This commit is contained in:
commit
b07941ed01
1 changed files with 4 additions and 3 deletions
|
@ -74,11 +74,12 @@ return function(world: types.World)
|
|||
local removed = map.removed
|
||||
|
||||
if removed then
|
||||
for i, e in removed do
|
||||
if not world:contains(e) then
|
||||
for _, entity in removed do
|
||||
entity = ecs_map_get(world, entity)
|
||||
if not world:contains(entity) then
|
||||
continue
|
||||
end
|
||||
world:remove(e, id)
|
||||
world:remove(entity, id)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue