From 40766d746c670a598bacbe26e149a105108f72d3 Mon Sep 17 00:00:00 2001 From: Capostrophic Date: Wed, 22 Apr 2020 16:06:42 +0300 Subject: [PATCH] Pick the correct aggressive actor in fight distance bias calculation --- apps/openmw/mwmechanics/combat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/combat.cpp b/apps/openmw/mwmechanics/combat.cpp index 978ca61bd5..9f5446c11e 100644 --- a/apps/openmw/mwmechanics/combat.cpp +++ b/apps/openmw/mwmechanics/combat.cpp @@ -467,7 +467,7 @@ namespace MWMechanics osg::Vec3f pos1 (actor1.getRefData().getPosition().asVec3()); osg::Vec3f pos2 (actor2.getRefData().getPosition().asVec3()); - float d = getAggroDistance(actor2, pos1, pos2); + float d = getAggroDistance(actor1, pos1, pos2); static const int iFightDistanceBase = MWBase::Environment::get().getWorld()->getStore().get().find( "iFightDistanceBase")->mValue.getInteger();