From 2a5d1a710def532685f26f7e77e378a33cbcad1c Mon Sep 17 00:00:00 2001 From: lopsi <40902730+Lpsd@users.noreply.github.com> Date: Mon, 17 Jun 2024 22:51:14 +0100 Subject: [PATCH] Update CClientWaterManager.cpp Co-authored-by: Marek Kulik --- Client/mods/deathmatch/logic/CClientWaterManager.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Client/mods/deathmatch/logic/CClientWaterManager.cpp b/Client/mods/deathmatch/logic/CClientWaterManager.cpp index b4a282e2d5..a7c30fe45b 100644 --- a/Client/mods/deathmatch/logic/CClientWaterManager.cpp +++ b/Client/mods/deathmatch/logic/CClientWaterManager.cpp @@ -106,11 +106,8 @@ bool CClientWaterManager::SetAllElementWaterLevel(float fLevel, void* pChangeSou bool CClientWaterManager::ResetAllElementWaterLevel() { - list::const_iterator iter = m_List.begin(); - for (; iter != m_List.end(); iter++) - { - (*iter)->ResetLevel(); - } + for (CClientWater* pWater : m_List) + pWater->ResetLevel(); return true; }