mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 11:19:17 +00:00
Compare commits
2 commits
8735d51700
...
b07941ed01
Author | SHA1 | Date | |
---|---|---|---|
|
b07941ed01 | ||
|
74c6a35352 |
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