mirror of
https://github.com/mangosfour/server.git
synced 2025-12-22 13:37:08 +00:00
* Move account related functions from ObjectMgr to AccountMgr and drop duplicate function also.
This commit is contained in:
parent
fc79aa717a
commit
ad5f559dad
7 changed files with 41 additions and 53 deletions
|
|
@ -166,14 +166,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue