diff --git a/MekHQ/src/mekhq/campaign/parts/AmmoStorage.java b/MekHQ/src/mekhq/campaign/parts/AmmoStorage.java index cc6fc84a3e..bfc3f24d11 100644 --- a/MekHQ/src/mekhq/campaign/parts/AmmoStorage.java +++ b/MekHQ/src/mekhq/campaign/parts/AmmoStorage.java @@ -124,7 +124,7 @@ public boolean isSamePartType(@Nullable Part part) { */ public boolean isSameAmmoType(AmmoType otherAmmoType) { return getType().equalsAmmoTypeOnly(otherAmmoType) - && (getType().getMunitionType() == otherAmmoType.getMunitionType()) + && (getType().getMunitionType().equals(otherAmmoType.getMunitionType())) && (getType().getRackSize() == otherAmmoType.getRackSize()); }