Null check pregnancy in PregnantAction
This commit is contained in:
parent
cddbb8313b
commit
9841aa145d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue