diff --git a/Runtime/World/CGameArea.cpp b/Runtime/World/CGameArea.cpp index a2912f556..dc47470a5 100644 --- a/Runtime/World/CGameArea.cpp +++ b/Runtime/World/CGameArea.cpp @@ -1183,7 +1183,7 @@ void CGameArea::SetAreaAttributes(const CScriptAreaAttributes* areaAttributes) { x12c_postConstructed->x1128_worldLightingLevel = areaAttributes->GetWorldLightingLevel(); } -bool CGameArea::CAreaObjectList::IsQualified(const CEntity& ent) { return (ent.GetAreaIdAlways() == x200c_areaIdx); } +bool CGameArea::CAreaObjectList::IsQualified(const CEntity& ent) const { return (ent.GetAreaIdAlways() == x200c_areaIdx); } void CGameArea::WarmupShaders(const SObjectTag& mreaTag) { // Calling this version of the constructor performs warmup implicitly CGameArea area(mreaTag.id); diff --git a/Runtime/World/CGameArea.hpp b/Runtime/World/CGameArea.hpp index ff653bb89..30de66de8 100644 --- a/Runtime/World/CGameArea.hpp +++ b/Runtime/World/CGameArea.hpp @@ -167,7 +167,7 @@ public: public: CAreaObjectList(TAreaId areaIdx) : CObjectList(EGameObjectList::Invalid), x200c_areaIdx(areaIdx) {} - bool IsQualified(const CEntity& ent) override; + bool IsQualified(const CEntity& ent) const override; }; enum class EOcclusionState { Occluded, Visible };