Null check pregnancy in PregnantAction

This commit is contained in:
lutepickle 2022-08-31 15:17:48 -07:00
parent cddbb8313b
commit 9841aa145d

View file

@ -1509,7 +1509,7 @@ namespace RJW_Menstruation
Implant(); Implant();
} }
if (Pawn.health.hediffSet.hediffs.Contains(pregnancy)) if (pregnancy != null && Pawn.health.hediffSet.hediffs.Contains(pregnancy))
{ {
curStageHrs += 1; curStageHrs += 1;
StayCurrentStageConst(Stage.Pregnant); StayCurrentStageConst(Stage.Pregnant);