Arch icon indicating copy to clipboard operation
Arch copied to clipboard

Calling RemoveRange(Entity entity, Span<ComponentType> types) can break entity slot

Open Orcolom opened this issue 9 months ago • 1 comments

When calling the public void RemoveRange(Entity entity, Span<ComponentType> types) method with an empty span it will move the entity slot even though the size doesn't change. This throws no exception. So, the next time you add an entity with the same archetype they will point to the same data.

Not sure if this is part of arch philosophy "You should know what you are doing" or considered a bug. Its definitely not something I expected to happen.

Orcolom avatar Jan 11 '25 16:01 Orcolom