diff --git a/megameklab/src/megameklab/printing/InventoryWriter.java b/megameklab/src/megameklab/printing/InventoryWriter.java index d59de1713..715679e67 100644 --- a/megameklab/src/megameklab/printing/InventoryWriter.java +++ b/megameklab/src/megameklab/printing/InventoryWriter.java @@ -888,6 +888,9 @@ public double printBayInfo(float fontSize, double lineHeight, double currY) { } else { capacity *= 4; } + } else if (b instanceof InfantryBay) { + // Divide total weight by weight required by platoon to get platoon capacity + capacity /= ((InfantryBay) b).getPlatoonType().getWeight(); } bayCapacityString.append(NumberFormat.getInstance().format(capacity)); if ((i + 1) < bays.size()) {