Fixed kick bug by letting the client reverse iterate over its cached player data when looking for a player name. Added several exceptions.

This commit is contained in:
lotodore
2007-11-10 22:18:31 +00:00
parent c7ab731648
commit ef84c7b81a
6 changed files with 50 additions and 33 deletions
+2 -2
View File
@@ -269,8 +269,8 @@ ClientThread::GetPlayerIdFromName(const string &playerName, unsigned &playerId)
bool retVal = false;
boost::mutex::scoped_lock lock(m_playerInfoMapMutex);
PlayerInfoMap::const_iterator i = m_playerInfoMap.begin();
PlayerInfoMap::const_iterator end = m_playerInfoMap.end();
PlayerInfoMap::const_reverse_iterator i = m_playerInfoMap.rbegin();
PlayerInfoMap::const_reverse_iterator end = m_playerInfoMap.rend();
while (i != end)
{