CEnvFxManager: Silence unused variable warnings

This commit is contained in:
Lioncash 2020-05-09 22:30:10 -04:00
parent 25ea6d98bc
commit f7ce3f2133
1 changed files with 2 additions and 2 deletions

View File

@ -178,10 +178,10 @@ void CEnvFxManager::CalculateSnowForces(const CVectorFixed8_8& zVec,
void CEnvFxManager::BuildBlockObjectList(rstl::reserved_vector<TUniqueId, 1024>& list, CStateManager& mgr) { void CEnvFxManager::BuildBlockObjectList(rstl::reserved_vector<TUniqueId, 1024>& list, CStateManager& mgr) {
for (CEntity* ent : mgr.GetAllObjectList()) { for (CEntity* ent : mgr.GetAllObjectList()) {
TCastToPtr<CScriptTrigger> trig = ent; const TCastToConstPtr<CScriptTrigger> trig = ent;
if (trig && True(trig->GetTriggerFlags() & ETriggerFlags::BlockEnvironmentalEffects)) { if (trig && True(trig->GetTriggerFlags() & ETriggerFlags::BlockEnvironmentalEffects)) {
list.push_back(ent->GetUniqueId()); list.push_back(ent->GetUniqueId());
} else if (TCastToPtr<CScriptWater> water = ent) { } else if (TCastToConstPtr<CScriptWater>(ent)) {
list.push_back(ent->GetUniqueId()); list.push_back(ent->GetUniqueId());
} }
} }