Skip to content

Commit

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

Fix #3761: update munitions equality tests
  • Loading branch information
NickAragua authored Sep 21, 2023
2 parents ee7e53b + a07ab98 commit 698e7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MekHQ/src/mekhq/campaign/parts/AmmoStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 698e7bc

Please sign in to comment.