Skip to content

Commit

Permalink
Replaced another trivial find_if with find.
Browse files Browse the repository at this point in the history
  • Loading branch information
afritz1 committed Apr 14, 2018
1 parent bb41024 commit 7fbb91b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions world/LevelFuncMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,7 @@ void LevelFuncMgr::Update()
{
for (const LevelFunc *remFunc : m_RemoveList)
{
const auto iter = std::find_if(m_Active.begin(), m_Active.end(),
[remFunc](const LevelFunc *activeFunc)
{
return activeFunc == remFunc;
});
const auto iter = std::find(m_Active.begin(), m_Active.end(), remFunc);

if (iter != m_Active.end())
{
Expand Down

0 comments on commit 7fbb91b

Please sign in to comment.