Core/ObjectMgr: Remove GetPlayer function (Remove double use of singletons)

This commit is contained in:
Spp- committed 2011-07-27 12:14:27 +02:00
1 parent fa50c0a464
commit b2a84d9f1e
47 files changed
+166 -168

No files matched your search

+1 -1
View File
@@ -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);