diff --git a/megameklab/src/megameklab/util/UnitUtil.java b/megameklab/src/megameklab/util/UnitUtil.java index f7722f2e0..2e4d738ed 100644 --- a/megameklab/src/megameklab/util/UnitUtil.java +++ b/megameklab/src/megameklab/util/UnitUtil.java @@ -3788,7 +3788,7 @@ public static void replaceFieldGun(Infantry unit, WeaponType fieldGun, int num) munition = EnumSet.of(AmmoType.Munitions.M_STANDARD); } Optional 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()) {