Skip to content

Fix query bounds and combination iteration#288

Merged
waynemwashuma merged 1 commit into
wimaengine:devfrom
waynemwashuma:fix-wrong-query
Mar 15, 2026
Merged

Fix query bounds and combination iteration#288
waynemwashuma merged 1 commit into
wimaengine:devfrom
waynemwashuma:fix-wrong-query

Conversation

@waynemwashuma
Copy link
Copy Markdown
Collaborator

@waynemwashuma waynemwashuma commented Mar 14, 2026

Objective

Fixes two bugs in the Query implementation:

  1. Out-of-bounds index check: Query.get() incorrectly indexed outside the valid range of table rows.
  2. Incorrect table lookup: Query.eachCombination() iterated the wrong table combination thus dublicating entity combinations

Solution

Ensure correct bounds in Query.get() and correct table iteration in Query.eachCombination()

Showcase

No API changes are introduced. This only fixes internal query behavior.

Migration guide

No migration required.

Checklist

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@waynemwashuma waynemwashuma self-assigned this Mar 14, 2026
@waynemwashuma waynemwashuma added the type:bug Something isn't working label Mar 14, 2026
@waynemwashuma waynemwashuma merged commit 9eac6a5 into wimaengine:dev Mar 15, 2026
7 checks passed
@waynemwashuma waynemwashuma deleted the fix-wrong-query branch March 15, 2026 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:ecs type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant