From f7ce3f2133d613c94f6e7ef2090e18d49b93f46d Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 9 May 2020 22:30:10 -0400 Subject: [PATCH] CEnvFxManager: Silence unused variable warnings --- Runtime/World/CEnvFxManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/World/CEnvFxManager.cpp b/Runtime/World/CEnvFxManager.cpp index 9e6b9bba1..d6e43acb9 100644 --- a/Runtime/World/CEnvFxManager.cpp +++ b/Runtime/World/CEnvFxManager.cpp @@ -178,10 +178,10 @@ void CEnvFxManager::CalculateSnowForces(const CVectorFixed8_8& zVec, void CEnvFxManager::BuildBlockObjectList(rstl::reserved_vector& list, CStateManager& mgr) { for (CEntity* ent : mgr.GetAllObjectList()) { - TCastToPtr trig = ent; + const TCastToConstPtr trig = ent; if (trig && True(trig->GetTriggerFlags() & ETriggerFlags::BlockEnvironmentalEffects)) { list.push_back(ent->GetUniqueId()); - } else if (TCastToPtr water = ent) { + } else if (TCastToConstPtr(ent)) { list.push_back(ent->GetUniqueId()); } }