Arch
                                
                                
                                
                                    Arch copied to clipboard
                            
                            
                            
                        Calling RemoveRange(Entity entity, Span<ComponentType> types) can break entity slot
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.