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
1 changed files with 1 additions and 1 deletions

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);
}