- fixed: NOINFIGHTSPECIES checked the wrong target actor.

This commit is contained in:
Christoph Oelckers 2017-03-09 18:44:32 +01:00
parent f8391ce97e
commit 609e4c78b4

View file

@ -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) &&