From 435bbdd53070f17c48fd1d8e393ae381f355e917 Mon Sep 17 00:00:00 2001 From: mrcheko Date: Fri, 17 Jan 2014 20:55:21 +0200 Subject: [PATCH] one more mismatch fixed --- apps/openmw/mwmechanics/aicombat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwmechanics/aicombat.cpp b/apps/openmw/mwmechanics/aicombat.cpp index 487a4773eb..9a78e44ffd 100644 --- a/apps/openmw/mwmechanics/aicombat.cpp +++ b/apps/openmw/mwmechanics/aicombat.cpp @@ -261,8 +261,8 @@ namespace MWMechanics //then start attacking float speed1 = cls.getSpeed(actor); float speed2 = mTarget.getClass().getSpeed(mTarget); - if(actor.getClass().getMovementSettings(mTarget).mPosition[0] == 0 - && actor.getClass().getMovementSettings(mTarget).mPosition[1] == 0) + if(mTarget.getClass().getMovementSettings(mTarget).mPosition[0] == 0 + && mTarget.getClass().getMovementSettings(mTarget).mPosition[1] == 0) speed2 = 0; float s1 = distBetween - weapRange;