aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Commands
diff options
context:
space:
mode:
authorSpp- <u84280@epreinf21.(none)>2011-07-27 12:14:27 +0200
committerSpp- <u84280@epreinf21.(none)>2011-07-27 12:14:27 +0200
commitb2a84d9f1edb5bf7df83e05f83ccccbdfca3b7b2 (patch)
tree1ca392df9474efcc85cc48a1bec26893e9b7344f /src/server/scripts/Commands
parentfa50c0a4646fd87da807130a043db2d89c022ccb (diff)
Core/ObjectMgr: Remove GetPlayer function (Remove double use of singletons)
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r--src/server/scripts/Commands/cs_npc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Commands/cs_npc.cpp b/src/server/scripts/Commands/cs_npc.cpp
index 6e4c99f1de9..9431bba41d6 100644
--- a/src/server/scripts/Commands/cs_npc.cpp
+++ b/src/server/scripts/Commands/cs_npc.cpp
@@ -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);