diff --git a/dGame/dBehaviors/ChangeOrientationBehavior.cpp b/dGame/dBehaviors/ChangeOrientationBehavior.cpp index a60be62f..d07e7429 100644 --- a/dGame/dBehaviors/ChangeOrientationBehavior.cpp +++ b/dGame/dBehaviors/ChangeOrientationBehavior.cpp @@ -16,7 +16,7 @@ void ChangeOrientationBehavior::Calculate(BehaviorContext* context, RakNet::BitS if (self == nullptr || other == nullptr) return; const auto source = self->GetPosition(); - const auto destination = self->GetPosition(); + const auto destination = other->GetPosition(); if (m_OrientCaster) { auto* baseCombatAIComponent = self->GetComponent();