Probably can't happen, but add a check in GiveBirth for null menstruation comp
This commit is contained in:
parent
d0210c23bf
commit
3f3977b3c7
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue