From e98a6de4933974ad5033a9b85743354f717554dc Mon Sep 17 00:00:00 2001 From: algebro Date: Thu, 26 Sep 2024 15:15:00 -0400 Subject: [PATCH] generate contract modifiers when adding contracts individually --- .../campaign/market/contractMarket/CamOpsContractMarket.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MekHQ/src/mekhq/campaign/market/contractMarket/CamOpsContractMarket.java b/MekHQ/src/mekhq/campaign/market/contractMarket/CamOpsContractMarket.java index 7a543deb96..947d350b8b 100644 --- a/MekHQ/src/mekhq/campaign/market/contractMarket/CamOpsContractMarket.java +++ b/MekHQ/src/mekhq/campaign/market/contractMarket/CamOpsContractMarket.java @@ -36,6 +36,9 @@ public CamOpsContractMarket() { @Override public AtBContract addAtBContract(Campaign campaign) { + if (contractMods == null) { + contractMods = generateContractModifiers(campaign); + } Optional c = generateContract(campaign); if (c.isPresent()) { AtBContract atbContract = c.get();