aboutsummaryrefslogtreecommitdiff
path: root/src/server/worldserver/CommandLine
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/worldserver/CommandLine
parentfa50c0a4646fd87da807130a043db2d89c022ccb (diff)
Core/ObjectMgr: Remove GetPlayer function (Remove double use of singletons)
Diffstat (limited to 'src/server/worldserver/CommandLine')
-rwxr-xr-xsrc/server/worldserver/CommandLine/CliRunnable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/worldserver/CommandLine/CliRunnable.cpp b/src/server/worldserver/CommandLine/CliRunnable.cpp
index 5597892f416..17acb88c460 100755
--- a/src/server/worldserver/CommandLine/CliRunnable.cpp
+++ b/src/server/worldserver/CommandLine/CliRunnable.cpp
@@ -447,7 +447,7 @@ bool ChatHandler::HandleCharacterEraseCommand(const char* args){
uint64 character_guid;
uint32 account_id;
- Player* player = sObjectMgr->GetPlayer(character_name.c_str());
+ Player* player = sObjectAccessor->FindPlayerByName(character_name.c_str());
if (player)
{
character_guid = player->GetGUID();