diff --git a/src/p_interaction.cpp b/src/p_interaction.cpp index 9629ccfe8..95de877f0 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) &&