Core/ObjectAccessor: Use FindConnectedPlayerByName in FindPlayerByName (#31137)

This commit is contained in:
HelloKitty
2025-09-06 08:45:42 -05:00
committed by GitHub
parent 3e23b8bcb7
commit 5d5fc62363

View File

@@ -241,7 +241,7 @@ Player* ObjectAccessor::FindPlayer(ObjectGuid const& guid)
Player* ObjectAccessor::FindPlayerByName(std::string_view name)
{
Player* player = PlayerNameMapHolder::Find(name);
Player* player = FindConnectedPlayerByName(name);
if (!player || !player->IsInWorld())
return nullptr;