From 09f869bd2cd6d226bfe331d35827a99d77124552 Mon Sep 17 00:00:00 2001 From: psikomonkie <189469115+psikomonkie@users.noreply.github.com> Date: Mon, 25 Nov 2024 16:07:01 -0500 Subject: [PATCH] Issue 5236 - My Mechwarrior Won't Stop Having Babies - Corrected GetAcademy parameter --- .../campaign/personnel/procreation/AbstractProcreation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MekHQ/src/mekhq/campaign/personnel/procreation/AbstractProcreation.java b/MekHQ/src/mekhq/campaign/personnel/procreation/AbstractProcreation.java index 6eaab3d049..260489665e 100644 --- a/MekHQ/src/mekhq/campaign/personnel/procreation/AbstractProcreation.java +++ b/MekHQ/src/mekhq/campaign/personnel/procreation/AbstractProcreation.java @@ -370,7 +370,7 @@ public void birth(final Campaign campaign, final LocalDate today, final Person m // if the mother is at school, add the baby to the list of tag alongs if ((mother.getEduAcademyName() != null) - && (!EducationController.getAcademy(mother.getEduAcademyName(), mother.getEduAcademyNameInSet()).isHomeSchool())) { + && (!EducationController.getAcademy(mother.getEduAcademySet(), mother.getEduAcademyNameInSet()).isHomeSchool())) { mother.addEduTagAlong(baby.getId()); baby.changeStatus(campaign, today, PersonnelStatus.ON_LEAVE);