From 73b38d3f9d7ecee51db967695551b1930073c346 Mon Sep 17 00:00:00 2001 From: Ed86 <email@email.com> Date: Tue, 16 Jul 2019 20:46:22 +0300 Subject: [PATCH] fix for error caused by factionless nymphs --- Source/ThinkTreeNodes/ThinkNode_ConditionalNympho.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ThinkTreeNodes/ThinkNode_ConditionalNympho.cs b/Source/ThinkTreeNodes/ThinkNode_ConditionalNympho.cs index 72680f68..314b0518 100644 --- a/Source/ThinkTreeNodes/ThinkNode_ConditionalNympho.cs +++ b/Source/ThinkTreeNodes/ThinkNode_ConditionalNympho.cs @@ -11,7 +11,7 @@ namespace rjw protected override bool Satisfied(Pawn p) { if (xxx.is_nympho(p)) - if (!p.Faction.IsPlayer) + if (p.Faction == null || !p.Faction.IsPlayer) return false; else return true; -- GitLab