Skip to content

Commit

Permalink
Fix personnel clearance condition in PersonnelMarket.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
IllianiCBT committed Jan 8, 2025
1 parent 2e4fcc1 commit b913b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MekHQ/src/mekhq/campaign/market/PersonnelMarket.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b913b4d

Please sign in to comment.