diff options
author | KingPin <none@none> | 2008-10-20 12:59:45 -0500 |
---|---|---|
committer | KingPin <none@none> | 2008-10-20 12:59:45 -0500 |
commit | cdb7fd43eef1a4577da1af9012d302b0cd2de5bb (patch) | |
tree | 9ae1be3f5958265703d9701ac4b796c70c29ec99 /src/trinitycore/CliRunnable.cpp | |
parent | 35f378aef9e2da3b24b2adb182f165d52da6a09b (diff) |
[svn] * Minor code fixes
* Move account related functions from ObjectMgr to AccountMgr and drop duplicate functions - source mangos
* recognize the dummy spells 38637, 38638 and 38639 as negative - source mangos
* added new command ".reload all_locales". Now all locales_* tables can be reloaded - source mangos
--HG--
branch : trunk
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; |