When an entity is deleted, World.__iter tries getting the archetype of a non-existent sparse array record.
local world = jecs.World.new()
local entity = world:entity()
world:delete(entity)
for e in world do -- jecs:839: attempt to index nil with 'archetype'
end
When an entity is deleted,
World.__iter
tries getting the archetype of a non-existent sparse array record.