Skip to content

Wrong EntityID returned when using queryFilter #90

Description

@Soupstraw

I ran into a bug where a query that used queryFilter returned the wrong EntityID.

I used an LLM to try and figure out where the bug happens and I was pointed to this line:
https://github.com/aztecs-hs/aztecs/blob/main/src/Aztecs/ECS/Query/Dynamic.hs#L141

It seems that the entity IDs retain the Set ordering, so when they're zipped together with the predicate results, they are matched up with the wrong result

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions