This commit is contained in:
renyang19910211 2025-06-20 23:40:22 -04:00 committed by GitHub
commit 43f9e7bc72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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