Skip to content

Commit

Permalink
Fix gender assignment in newPerson method
Browse files Browse the repository at this point in the history
The gender parameter was passed incorrectly, causing issues with randomization. Changed the Gender.RANDOMIZE to use the variable 'gender' for proper assignment.
  • Loading branch information
IllianiCBT committed Oct 19, 2024
1 parent 4c192fa commit c91137e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MekHQ/src/mekhq/campaign/Campaign.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c91137e

Please sign in to comment.