Unconditionally initialize cum and eggs (e.g. for infertile pawns)

This commit is contained in:
lutepickle 2023-04-16 12:26:11 -07:00
parent 4af5195de9
commit 08ebaa9db3
2 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -1140,11 +1140,13 @@ namespace RJW_Menstruation
initError = true;
Props = (CompProperties_Menstruation)props;
if (cums == null) cums = new List<Cum>();
if (eggs == null) eggs = new List<Egg>();
Notify_UpdatedGenes();
if (Props.infertile)
{
if (cums == null) cums = new List<Cum>();
curStage = Stage.None;
loaded = true;
initError = false;
@ -1170,8 +1172,6 @@ namespace RJW_Menstruation
}
if (crampPain < 0) crampPain = PainRandomizer();
InitializeExtraValues();
if (cums == null) cums = new List<Cum>();
if (eggs == null) eggs = new List<Egg>();
TakeLoosePregnancy();