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