From 609e4c78b4047c981292dfc781624744ef16c743 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 9 Mar 2017 18:44:32 +0100 Subject: [PATCH] - fixed: NOINFIGHTSPECIES checked the wrong target actor. --- src/p_interaction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_interaction.cpp b/src/p_interaction.cpp index 9629ccfe84..95de877f01 100644 --- a/src/p_interaction.cpp +++ b/src/p_interaction.cpp @@ -1707,7 +1707,7 @@ bool AActor::OkayToSwitchTarget (AActor *other) } } - if ((flags7 & MF7_NOINFIGHTSPECIES) && GetSpecies() == target->GetSpecies()) + if ((flags7 & MF7_NOINFIGHTSPECIES) && GetSpecies() == other->GetSpecies()) return false; // Don't fight own species. if ((other->flags3 & MF3_NOTARGET) &&