From 27813e5fc3391df3fdbd497db7557a3cede483f1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 9 Apr 2020 21:19:54 -0400 Subject: [PATCH] CThardus: Remove mutable specifier from m_flareFilter Now that Render() is non-const, this specifier is no longer necessary. --- Runtime/MP1/World/CThardus.cpp | 2 +- Runtime/MP1/World/CThardus.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Runtime/MP1/World/CThardus.cpp b/Runtime/MP1/World/CThardus.cpp index d0f8f6763..ae6c743a9 100644 --- a/Runtime/MP1/World/CThardus.cpp +++ b/Runtime/MP1/World/CThardus.cpp @@ -977,7 +977,7 @@ void CThardus::UpdateExcludeList(const std::unique_ptr& } } -void CThardus::RenderFlare(const CStateManager& mgr, float t) const { +void CThardus::RenderFlare(const CStateManager& mgr, float t) { if (!x91c_flareTexture) return; if (!m_flareFilter) diff --git a/Runtime/MP1/World/CThardus.hpp b/Runtime/MP1/World/CThardus.hpp index 1fdb108b3..85a16cb14 100644 --- a/Runtime/MP1/World/CThardus.hpp +++ b/Runtime/MP1/World/CThardus.hpp @@ -159,11 +159,11 @@ class CThardus : public CPatterned { void _SetupCollisionManagers(CStateManager& mgr); void _BuildSphereJointList(const SSphereJointInfo* arr, size_t count, std::vector& list); void _BuildAABoxJointList(const SAABoxJointInfo* arr, size_t count, std::vector& list); - void RenderFlare(const CStateManager& mgr, float t) const; + void RenderFlare(const CStateManager& mgr, float t); zeus::CVector3f sub801de550(const CStateManager& mgr) const; zeus::CVector3f sub801de434(const CStateManager& mgr) const { return {}; } - mutable std::optional m_flareFilter; + std::optional m_flareFilter; public: DEFINE_PATTERNED(Thardus)