diff --git a/dGame/dBehaviors/ChangeOrientationBehavior.cpp b/dGame/dBehaviors/ChangeOrientationBehavior.cpp index a7dc838f..398e9e33 100644 --- a/dGame/dBehaviors/ChangeOrientationBehavior.cpp +++ b/dGame/dBehaviors/ChangeOrientationBehavior.cpp @@ -9,7 +9,6 @@ void ChangeOrientationBehavior::Calculate(BehaviorContext* context, RakNet::BitS else sourceEntity = EntityManager::Instance()->GetEntity(branch.target); if (!sourceEntity) return; - if (this->m_toTarget) { Entity* destinationEntity; if (this->m_orientCaster) destinationEntity = EntityManager::Instance()->GetEntity(branch.target); diff --git a/dGame/dBehaviors/ChangeOrientationBehavior.h b/dGame/dBehaviors/ChangeOrientationBehavior.h index 46d471ad..22c92bb8 100644 --- a/dGame/dBehaviors/ChangeOrientationBehavior.h +++ b/dGame/dBehaviors/ChangeOrientationBehavior.h @@ -1,7 +1,6 @@ #pragma once #include "Behavior.h" -#include class ChangeOrientationBehavior final : public Behavior { public: