Skip to content

Commit

Permalink
Update CWaterManager.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Marek Kulik <[email protected]>
  • Loading branch information
Lpsd and botder authored Jun 17, 2024
1 parent 30bec61 commit 400e88b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Server/mods/deathmatch/logic/CWaterManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,8 @@ void CWaterManager::SetAllElementWaterLevel(float fLevel)

void CWaterManager::ResetAllElementWaterLevel()
{
std::list<CWater*>::const_iterator iter = m_List.begin();
for (; iter != m_List.end(); ++iter)
{
(*iter)->ResetLevel();
}
for (CWater* pWater : m_List)
pWater->ResetLevel();
}

void CWaterManager::ResetElementWaterLevel(CWater* pWater)
Expand Down

0 comments on commit 400e88b

Please sign in to comment.