From c91137ed24dd1da8cf0a2e9bc8c96464c4d3adce Mon Sep 17 00:00:00 2001 From: IllianiCBT Date: Sat, 19 Oct 2024 18:58:23 -0500 Subject: [PATCH] Fix gender assignment in newPerson method The gender parameter was passed incorrectly, causing issues with randomization. Changed the Gender.RANDOMIZE to use the variable 'gender' for proper assignment. --- MekHQ/src/mekhq/campaign/Campaign.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MekHQ/src/mekhq/campaign/Campaign.java b/MekHQ/src/mekhq/campaign/Campaign.java index b81b6b83fc..977750ad36 100644 --- a/MekHQ/src/mekhq/campaign/Campaign.java +++ b/MekHQ/src/mekhq/campaign/Campaign.java @@ -1463,7 +1463,7 @@ public Person newDependent(boolean baby, Gender gender) { person = newPerson(PersonnelRole.DEPENDENT, PersonnelRole.NONE, new DefaultFactionSelector(getCampaignOptions().getRandomOriginOptions()), new DefaultPlanetSelector(getCampaignOptions().getRandomOriginOptions()), - Gender.RANDOMIZE); + gender); } else { person = newPerson(PersonnelRole.DEPENDENT); }