1
0

git-svn-id: http://mc-server.googlecode.com/svn/trunk@281 0a769ca7-a7f5-676a-18bf-c427514a06d6

This commit is contained in:
faketruth
2012-02-16 22:28:19 +00:00
parent eefe71f593
commit 4a7883a5e3
5 changed files with 6 additions and 6 deletions

View File

@@ -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;
}