diff --git a/Runtime/Character/CBodyController.cpp b/Runtime/Character/CBodyController.cpp index a37e7ac21..ddd92cf35 100644 --- a/Runtime/Character/CBodyController.cpp +++ b/Runtime/Character/CBodyController.cpp @@ -142,8 +142,8 @@ void CBodyController::FaceDirection3D(const zeus::CVector3f& v0, const zeus::CVe } } -bool CBodyController::HasBodyInfo(CActor& act) { - return act.GetModelData()->GetAnimationData()->GetCharacterInfo().GetPASDatabase().GetNumAnimStates() != 0; +bool CBodyController::HasBodyInfo(const CActor& actor) { + return actor.GetModelData()->GetAnimationData()->GetCharacterInfo().GetPASDatabase().GetNumAnimStates() != 0; } void CBodyController::PlayBestAnimation(const CPASAnimParmData& parms, CRandom16& r) { diff --git a/Runtime/Character/CBodyController.hpp b/Runtime/Character/CBodyController.hpp index e546a2bf2..ac9839dae 100644 --- a/Runtime/Character/CBodyController.hpp +++ b/Runtime/Character/CBodyController.hpp @@ -86,7 +86,7 @@ public: void SetDeltaRotation(const zeus::CQuaternion& q) { x2dc_rot *= q; } void FaceDirection(const zeus::CVector3f& v0, float dt); void FaceDirection3D(const zeus::CVector3f& v0, const zeus::CVector3f& v1, float dt); - static bool HasBodyInfo(CActor& act); + static bool HasBodyInfo(const CActor& actor); const CPASDatabase& GetPASDatabase() const; void PlayBestAnimation(const CPASAnimParmData& parms, CRandom16& r); void LoopBestAnimation(const CPASAnimParmData& parms, CRandom16& r);