From b961d1f2793cc6fe02edc0ab64543f19c94379e6 Mon Sep 17 00:00:00 2001 From: IllianiCBT Date: Thu, 21 Nov 2024 11:28:20 -0600 Subject: [PATCH] Add conditional check for StratCon before processing mass rout Ensured that mass rout processing in AtBContract only occurs when StratCon is enabled in campaign options. This change prevents unnecessary operations and aligns with the intended functionality of user-defined campaign options. --- MekHQ/src/mekhq/campaign/mission/AtBContract.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MekHQ/src/mekhq/campaign/mission/AtBContract.java b/MekHQ/src/mekhq/campaign/mission/AtBContract.java index 36e3dbbe4f..5871ae60b9 100644 --- a/MekHQ/src/mekhq/campaign/mission/AtBContract.java +++ b/MekHQ/src/mekhq/campaign/mission/AtBContract.java @@ -542,7 +542,9 @@ public void checkMorale(Campaign campaign, LocalDate today) { setEndDate(today.plusDays(1)); } - processMassRout(campaign, getStratconCampaignState()); + if (campaign.getCampaignOptions().isUseStratCon()) { + processMassRout(campaign, getStratconCampaignState()); + } } // Process the results of the reinforcement roll