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
I ran into a bug where a query that used
queryFilterreturned 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