1
0

Changed DoWithPlayer to auto instead of using iterator.

This commit is contained in:
Vincent 2014-12-08 15:58:46 -08:00
parent 12c012fa01
commit e9a27db028

View File

@ -651,9 +651,9 @@ bool cRoot::DoWithPlayerByUUID(const AString & a_PlayerUUID, cPlayerListCallback
bool cRoot::DoWithPlayer(const AString & a_PlayerName, cPlayerListCallback & a_Callback)
{
for (WorldMap::iterator itr = m_WorldsByName.begin(); itr != m_WorldsByName.end(); itr++)
for (auto World : m_WorldsByName)
{
if (itr->second->DoWithPlayer(a_PlayerName, a_Callback))
if (World.second->DoWithPlayer(a_PlayerName, a_Callback))
{
return true;
}