diff --git a/Runtime/MP1/World/CFireFlea.cpp b/Runtime/MP1/World/CFireFlea.cpp index 955577e1a..1654a1209 100644 --- a/Runtime/MP1/World/CFireFlea.cpp +++ b/Runtime/MP1/World/CFireFlea.cpp @@ -128,7 +128,7 @@ void CFireFlea::TargetPatrol(CStateManager& mgr, EStateMsg msg, float arg) { } } -zeus::CVector3f CFireFlea::FindSafeRoute(CStateManager& mgr, const zeus::CVector3f& forward) { +zeus::CVector3f CFireFlea::FindSafeRoute(CStateManager& mgr, const zeus::CVector3f& forward) const { const float mag = forward.magnitude(); if (mag <= 0.f) { return {}; @@ -171,11 +171,11 @@ zeus::CVector3f CFireFlea::FindSafeRoute(CStateManager& mgr, const zeus::CVector return -forward; } -bool CFireFlea::CheckNearWater(const CStateManager& mgr, const zeus::CVector3f& dir) { +bool CFireFlea::CheckNearWater(const CStateManager& mgr, const zeus::CVector3f& dir) const { rstl::reserved_vector nearList; mgr.BuildNearList(nearList, GetTranslation(), dir, 2.f, CMaterialFilter::skPassEverything, nullptr); - for (TUniqueId id : nearList) { + for (const TUniqueId id : nearList) { if (TCastToConstPtr(mgr.GetObjectById(id))) return true; } diff --git a/Runtime/MP1/World/CFireFlea.hpp b/Runtime/MP1/World/CFireFlea.hpp index ef9020ebc..f375f56f6 100644 --- a/Runtime/MP1/World/CFireFlea.hpp +++ b/Runtime/MP1/World/CFireFlea.hpp @@ -33,8 +33,8 @@ class CFireFlea : public CPatterned { CPathFindSearch xd8c_pathFind; static s32 sLightIdx; - zeus::CVector3f FindSafeRoute(CStateManager& mgr, const zeus::CVector3f& forward); - bool CheckNearWater(const CStateManager&, const zeus::CVector3f& dir); + zeus::CVector3f FindSafeRoute(CStateManager& mgr, const zeus::CVector3f& forward) const; + bool CheckNearWater(const CStateManager&, const zeus::CVector3f& dir) const; public: DEFINE_PATTERNED(FireFlea)