Null check pregnancy in PregnantAction

This commit is contained in:
lutepickle 2022-08-31 15:17:48 -07:00
parent cddbb8313b
commit 9841aa145d
1 changed files with 1 additions and 1 deletions

View File

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