From 8af0df4309c8caa8c08d5cd9cb6008b9a5f99054 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 13 Jul 2012 19:25:53 +0000 Subject: Fixed case comparison - used the builtin function git-svn-id: http://mc-server.googlecode.com/svn/trunk@663 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWorld.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/cWorld.cpp') diff --git a/source/cWorld.cpp b/source/cWorld.cpp index f904d8ceb..9531e23c3 100644 --- a/source/cWorld.cpp +++ b/source/cWorld.cpp @@ -1534,7 +1534,7 @@ bool cWorld::DoWithPlayer(const AString & a_PlayerName, cPlayerListCallback & a_ cCSLock Lock(m_CSPlayers); for (cPlayerList::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr) { - if (iequals((*itr)->GetName(), a_PlayerName)) + if (NoCaseCompare((*itr)->GetName(), a_PlayerName) == 0) { a_Callback.Item(*itr); return true; -- cgit v1.2.3