Core/ObjectMgr: Remove GetPlayer function (Remove double use of singletons)
This commit is contained in:
1 parent
fa50c0a464
commit
b2a84d9f1e
47 files changed
+166
-168
No files matched your search
@@ -320,7 +320,7 @@ void CreatureTextMgr::SendChatPacket(WorldPacket* data, WorldObject* source, Cha
|
||||
{
|
||||
if (range == TEXT_RANGE_NORMAL)//ignores team and gmOnly
|
||||
{
|
||||
Player* player = sObjectMgr->GetPlayer(whisperGuid);
|
||||
Player* player = ObjectAccessor::FindPlayer(whisperGuid);
|
||||
if (!player || !player->GetSession())
|
||||
return;
|
||||
player->GetSession()->SendPacket(data);
|
||||
|
||||
Reference in new issue
Block a user