Probably can't happen, but add a check in GiveBirth for null menstruation comp

This commit is contained in:
lutepickle 2022-07-20 12:43:35 -07:00
parent d0210c23bf
commit 3f3977b3c7
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,8 @@ namespace RJW_Menstruation
}
pawn.health.RemoveHediff(this);
this.GetMenstruationComp().Pregnancy = null;
HediffComp_Menstruation comp = this.GetMenstruationComp();
if(comp != null) comp.Pregnancy = null;
}
public string GetBabyInfo()