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 another cause of "Could not find step name" (2.6 bug). #11780

Merged
merged 1 commit into from
Jul 15, 2023

Conversation

asvitkine
Copy link
Contributor

@asvitkine asvitkine commented Jul 15, 2023

Change Summary & Additional Notes

This one is caused by non-determinism when choose an arbitrary unit type in a firing group to name that group. When the ordering of the provided units changed during the rounds of a battle, it resulted in different step names generated. This PR fixes that problem by choosing the first name alphabetically.

Adds test coverage.

Fixes: #11617
Tested with: #11617 (comment)

Release Note

This one is caused by non-determinism when choose an arbitrary unit type in a firing group to name that group. When the ordering of the provided units changed during the rounds of a battle, it resulted in different step names generated. This PR fixes that problem by choosing the first name alphabetically.
@asvitkine asvitkine merged commit a244e69 into triplea-game:master Jul 15, 2023
1 check passed
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.

Error with "canNotTarget"
1 participant