Skip to content

Conversation

@kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented Nov 18, 2025

Identify the Bug or Feature request

Fixes new bug introduced by #5822 for #4769

Description of the Change

Up until MapTool 1.18, when multiple table entries match a roll, the last one would be returned despite the list being iterated front to back. My recent change inverted this so that the first match would be returned.

This PR brings back the original behaviour by iterating the list in reverse while keeping the early exit once a match is found.

Possible Drawbacks

None

Documentation Notes

N/A

Release Notes

N/A


This change is Reviewable

@kwvanderlinde kwvanderlinde self-assigned this Nov 18, 2025
@kwvanderlinde kwvanderlinde moved this from Todo to Awaiting-Review in MapTool 1.19 Nov 18, 2025
@kwvanderlinde kwvanderlinde linked an issue Nov 18, 2025 that may be closed by this pull request
@github-project-automation github-project-automation bot moved this from Awaiting-Review to To-Be-Merged in MapTool 1.19 Nov 20, 2025
@cwisniew cwisniew added this pull request to the merge queue Nov 20, 2025
Merged via the queue into RPTools:develop with commit 051c464 Nov 20, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from To-Be-Merged to Merged in MapTool 1.19 Nov 20, 2025
@kwvanderlinde kwvanderlinde deleted the bugfix/4769-fix-overlapping-result-order branch November 20, 2025 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

[Bug]: setTableEntry extremely slow

2 participants