Skip to content

Commit

Permalink
Update AvailableSupports.java
Browse files Browse the repository at this point in the history
Allows for infinite number of supports
  • Loading branch information
WCSumpton committed Jun 9, 2024
1 parent 8e84dd4 commit dda4bdc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private Unit getNextAvailableSupporter(final UnitSupportAttachment support, fina
final Unit u = CollectionUtils.getAt(intMap.keySet(), i);
intMap.add(u, -1);
details.totalSupport -= 1;
if (intMap.getInt(u) <= 0) {
if (intMap.getInt(u) == 0) {
intMap.removeKey(u);
}
return u;
Expand Down

0 comments on commit dda4bdc

Please sign in to comment.