summaryrefslogtreecommitdiffstats
path: root/src/Root.cpp
diff options
context:
space:
mode:
authorVincent <vincent.leung60@gmail.com>2014-12-09 00:58:46 +0100
committerVincent <vincent.leung60@gmail.com>2014-12-09 00:58:46 +0100
commite9a27db028172b5d964cee4421ed5df3af5a1cf0 (patch)
treea748ab28b39d7db41fef294dac25ade90605f7d4 /src/Root.cpp
parentChanged CheckMultiLogin() to not have main body wrapped in an if statement. (diff)
downloadcuberite-e9a27db028172b5d964cee4421ed5df3af5a1cf0.tar
cuberite-e9a27db028172b5d964cee4421ed5df3af5a1cf0.tar.gz
cuberite-e9a27db028172b5d964cee4421ed5df3af5a1cf0.tar.bz2
cuberite-e9a27db028172b5d964cee4421ed5df3af5a1cf0.tar.lz
cuberite-e9a27db028172b5d964cee4421ed5df3af5a1cf0.tar.xz
cuberite-e9a27db028172b5d964cee4421ed5df3af5a1cf0.tar.zst
cuberite-e9a27db028172b5d964cee4421ed5df3af5a1cf0.zip
Diffstat (limited to '')
-rw-r--r--src/Root.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Root.cpp b/src/Root.cpp
index c59590d95..2234f7fdc 100644
--- a/src/Root.cpp
+++ b/src/Root.cpp
@@ -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;
}