From 387b0b7919c452eeff7f4aac1ddcbc0dc1bbd078 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 5 Nov 2024 18:01:51 +0100 Subject: [PATCH] rename TroopSpace to InfantryCompartment --- MekHQ/src/mekhq/campaign/mission/AtBDynamicScenarioFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MekHQ/src/mekhq/campaign/mission/AtBDynamicScenarioFactory.java b/MekHQ/src/mekhq/campaign/mission/AtBDynamicScenarioFactory.java index b2d8e8f40e..e3466b8573 100644 --- a/MekHQ/src/mekhq/campaign/mission/AtBDynamicScenarioFactory.java +++ b/MekHQ/src/mekhq/campaign/mission/AtBDynamicScenarioFactory.java @@ -1835,7 +1835,7 @@ private static List fillTransport(AtBScenario scenario, for (Transporter bay : transport.getTransports()) { // If unit has an infantry bay - if (bay instanceof TroopSpace) { + if (bay instanceof InfantryCompartment) { double bayCapacity = bay.getUnused(); int remainingCount = (int) Math.max(1, Math.floor(bayCapacity / IUnitGenerator.FOOT_PLATOON_INFANTRY_WEIGHT));