-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix infinite loop in AA casualty selection code. (#12728)
This would happen when there's more hits than units in low luck mode code in the block where there's no guaranteed groups. Adding the extra logic to findRandomTargets() also allows us to remove redundant logic at some of the callsites.
- Loading branch information
Showing
1 changed file
with
11 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters