This commit is contained in:
renyang19910211 2025-06-27 18:29:06 +02:00 committed by GitHub
commit 8735d51700
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 local removed = map.removed
if removed then if removed then
for i, e in removed do for _, entity in removed do
if not world:contains(e) then entity = ecs_map_get(world, entity)
if not world:contains(entity) then
continue continue
end end
world:remove(e, id) world:remove(entity, id)
end end
end end
end end