From 4a7883a5e3ab3692cb09ba5eebb45cf5a34c4bfa Mon Sep 17 00:00:00 2001 From: faketruth Date: Thu, 16 Feb 2012 22:28:19 +0000 Subject: git-svn-id: http://mc-server.googlecode.com/svn/trunk@281 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWorld.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/cWorld.cpp') 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; } -- cgit v1.2.3