Core/Misc: Make ObjectAccessor::FindPlayerByName case-insensitive

This commit is contained in:
Shocker
2012-03-04 19:24:38 +02:00
parent 517f64b518
commit ab65bb4b57
+1 -1
View File
@@ -168,7 +168,7 @@ Player* ObjectAccessor::FindPlayerByName(const char* name)
TRINITY_READ_GUARD(HashMapHolder<Player>::LockType, *HashMapHolder<Player>::GetLock());
HashMapHolder<Player>::MapType const& m = GetPlayers();
for (HashMapHolder<Player>::MapType::const_iterator iter = m.begin(); iter != m.end(); ++iter)
if (iter->second->IsInWorld() && strcmp(name, iter->second->GetName()) == 0)
if (iter->second->IsInWorld() && strcmpi(name, iter->second->GetName()) == 0)
return iter->second;
return NULL;