Added pawn.Spawned check before spawning blood filth

This commit is contained in:
amevarashi 2022-11-12 10:45:17 +05:00
parent e79b0d7fec
commit e37f45399e

View file

@ -53,7 +53,7 @@ namespace RJWSexperience.Virginity
return null;
int degree = virgin.Degree;
if (pawn.gender == Gender.Female && degree > 0 && !pawn.Dead)
if (pawn.gender == Gender.Female && degree > 0 && pawn.Spawned && !pawn.Dead)
{
FilthMaker.TryMakeFilth(pawn.Position, pawn.Map, ThingDefOf.Filth_Blood, pawn.LabelShort, 1, FilthSourceFlags.Pawn);
}