Skip to content

Commit

Permalink
Merge pull request #5065 from WeaverThree/wvr-fix-armor-on-order
Browse files Browse the repository at this point in the history
Fix to show actual amount of armor on order in repair info
  • Loading branch information
HammerGS authored Oct 21, 2024
2 parents 9782410 + f42f4fd commit 6f40ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MekHQ/src/mekhq/campaign/Campaign.java
Original file line number Diff line number Diff line change
Expand Up @@ -7689,7 +7689,7 @@ public PartInventory getPartInventory(Part part) {
IAcquisitionWork onOrder = getShoppingList().getShoppingItem(part);
if (null != onOrder) {
if (onOrder instanceof Armor) { // ProtoMek Armor and BaArmor are derived from Armor
nOrdered += ((Armor) onOrder).getAmount();
nOrdered += ((Armor) onOrder).getAmount() * ((Armor) onOrder).getQuantity();
} else if (onOrder instanceof AmmoStorage) {
nOrdered += ((AmmoStorage) onOrder).getShots();
} else {
Expand Down

0 comments on commit 6f40ee2

Please sign in to comment.