Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Inconsistent combination ids in heuristics mode #799

Merged
merged 1 commit into from
Sep 21, 2024

Conversation

marcustyphoon
Copy link
Collaborator

@marcustyphoon marcustyphoon commented Sep 21, 2024

Baby's first nontrivial Rust code; yes I will get around to learning the language for real some time, no today is not that day. Not AI-assisted—I hate using AI for code in its current state—but I was copy-pasting out of docs examples, so it arguably may as well be.

Anyway: this, for compatibility with #796, ensures that character.combination_id will refer to the index of the relevant combination relative to the entire combination list, not to the list picked by heuristics, by using picked_combination_ids as a whitelist instead of filtering the array with it beforehand.

Resolves #798.

Copy link
Contributor

github-actions bot commented Sep 21, 2024

Deployed preview build to Cloudflare!

Last commit: 35fac85
Preview URL: https://3a0eea53.discretize-gear-optimizer.pages.dev
Branch Preview URL: https://heuristics-consistent-ids.discretize-gear-optimizer.pages.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible erroneous display of heuristics mode results
1 participant