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 "Bombing Raids should be dealt with first!" error. #11848

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

asvitkine
Copy link
Contributor

@asvitkine asvitkine commented Aug 3, 2023

This could happen if a unit is sent to bomb somewhere but then gets moved again, resulting in an empty battle (which gets skipped during the bombing battle phase). This removes the logic for considering empty for the purposes of this error. Also removes code to cancel such battle right before throwing the error, since the expectation is that we shouldn't be hitting this codepath, so no need to try to "handle" the situation.

Fixes: #11846

Change Summary & Additional Notes

Release Note

This could happen if a unit is sent to bomb somewhere but then gets moved again, resulting in an empty battle (which gets skipped during the bombing battle phase).
This removes the logic for considering empty for the purposes of this error. Also removes code to cancel such battle right before throwing the error, since the expectation is that we shouldn't be hitting this codepath, so no need to try to "handle" the situation.

Also, some related cleanup.
@asvitkine asvitkine merged commit cbd2a46 into triplea-game:master Aug 3, 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.

"Bombing Raids should be dealt with first!" error with fast ai
1 participant