Skip to content

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

Open
@Orcolom

Description

@Orcolom

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions