Skip to content

Commit

Permalink
Merge pull request #1313 from Sleet01/fix_3761_update_munitions_equal…
Browse files Browse the repository at this point in the history
…ity_tests_mml

Fix MML #3761: update munitions equality tests
  • Loading branch information
NickAragua authored Sep 21, 2023
2 parents d8b0e5f + 416c884 commit a4d3e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megameklab/src/megameklab/util/UnitUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -3788,7 +3788,7 @@ public static void replaceFieldGun(Infantry unit, WeaponType fieldGun, int num)
munition = EnumSet.of(AmmoType.Munitions.M_STANDARD);
}
Optional<AmmoType> ammo = AmmoType.getMunitionsFor(fieldGun.getAmmoType()).stream()
.filter(eq -> (eq.getMunitionType().contains(munition))
.filter(eq -> (eq.getMunitionType().equals(munition))
&& (eq.getRackSize() == fieldGun.getRackSize()))
.findFirst();
if (ammo.isEmpty()) {
Expand Down

0 comments on commit a4d3e1f

Please sign in to comment.