Core/ObjectMgr: Remove GetPlayer function (Remove double use of singletons)
This commit is contained in:
@@ -1040,7 +1040,7 @@ public:
|
||||
uint64 receiver_guid= atol(receiver_str);
|
||||
|
||||
// check online security
|
||||
if (handler->HasLowerSecurity(sObjectMgr->GetPlayer(receiver_guid), 0))
|
||||
if (handler->HasLowerSecurity(ObjectAccessor::FindPlayer(receiver_guid), 0))
|
||||
return false;
|
||||
|
||||
creature->MonsterWhisper(text, receiver_guid);
|
||||
|
||||
Reference in New Issue
Block a user