diff options
Diffstat (limited to 'src/trinitycore/CliRunnable.cpp')
-rw-r--r-- | src/trinitycore/CliRunnable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trinitycore/CliRunnable.cpp b/src/trinitycore/CliRunnable.cpp index ee4e5c3be54..394459ad787 100644 --- a/src/trinitycore/CliRunnable.cpp +++ b/src/trinitycore/CliRunnable.cpp @@ -168,14 +168,14 @@ void CliLoadPlayerDump(char*command,pPrintf zprintf) return; } - uint32 account_id = objmgr.GetAccountByAccountName(acc); + uint32 account_id = accmgr.GetId(acc); if(!account_id) { account_id = atoi(acc); if(account_id) { std::string acc_name; - if(!objmgr.GetAccountNameByAccount(account_id,acc_name)) + if(!accmgr.GetName(account_id,acc_name)) { zprintf("Failed to load the character! Account not exist.\r\n"); return; |