From b913b4d25e318f48672a40568cb01dd0aa8c3840 Mon Sep 17 00:00:00 2001 From: IllianiCBT Date: Wed, 8 Jan 2025 12:14:45 -0600 Subject: [PATCH] Fix personnel clearance condition in PersonnelMarket. Corrected a logical error in the personnel removal condition to account for cases where the location is not on a planet. This ensures proper handling of personnel clearance based on location and hiring hall or capital criteria. --- MekHQ/src/mekhq/campaign/market/PersonnelMarket.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MekHQ/src/mekhq/campaign/market/PersonnelMarket.java b/MekHQ/src/mekhq/campaign/market/PersonnelMarket.java index 038bfcb79e..9d344558a9 100644 --- a/MekHQ/src/mekhq/campaign/market/PersonnelMarket.java +++ b/MekHQ/src/mekhq/campaign/market/PersonnelMarket.java @@ -128,7 +128,7 @@ public void generatePersonnelForDay(Campaign campaign) { removePersonnelForDay(campaign); // If only capitals/hiring halls are allowed and the location fails both conditions, clear personnel - if (isOnPlanet || (useCapitalsHiringHallsOnly && !isHiringHall && !isCapital)) { + if (!isOnPlanet || (useCapitalsHiringHallsOnly && !isHiringHall && !isCapital)) { removeAll(); return; }