diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-16 23:28:19 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-16 23:28:19 +0100 |
commit | 4a7883a5e3ab3692cb09ba5eebb45cf5a34c4bfa (patch) | |
tree | a4ebe965ce187a982e05fcaf8cf0ae5880948dc7 /source/cWorld.cpp | |
parent | New server command "unload" to manually unload unused chunks (diff) | |
download | cuberite-4a7883a5e3ab3692cb09ba5eebb45cf5a34c4bfa.tar cuberite-4a7883a5e3ab3692cb09ba5eebb45cf5a34c4bfa.tar.gz cuberite-4a7883a5e3ab3692cb09ba5eebb45cf5a34c4bfa.tar.bz2 cuberite-4a7883a5e3ab3692cb09ba5eebb45cf5a34c4bfa.tar.lz cuberite-4a7883a5e3ab3692cb09ba5eebb45cf5a34c4bfa.tar.xz cuberite-4a7883a5e3ab3692cb09ba5eebb45cf5a34c4bfa.tar.zst cuberite-4a7883a5e3ab3692cb09ba5eebb45cf5a34c4bfa.zip |
Diffstat (limited to 'source/cWorld.cpp')
-rw-r--r-- | source/cWorld.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cWorld.cpp b/source/cWorld.cpp index 81058cd93..1161afbff 100644 --- a/source/cWorld.cpp +++ b/source/cWorld.cpp @@ -1052,13 +1052,13 @@ void cWorld::RemovePlayer( cPlayer* a_Player ) -bool cWorld::ForEachPlayer(cPlayerListCallback * a_Callback)
+bool cWorld::ForEachPlayer(cPlayerListCallback & a_Callback)
{
// Calls the callback for each player in the list
cCSLock Lock(m_CSPlayers);
for (cPlayerList::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr)
{
- if (a_Callback->Item(*itr))
+ if (a_Callback.Item(*itr))
{
return false;
}
|