AccountMgr singleton converted to namespace with free functions as it has no internal state
This commit is contained in:
@@ -2298,7 +2298,7 @@ bool World::RemoveBanAccount(BanMode mode, std::string nameOrIP)
|
||||
{
|
||||
uint32 account = 0;
|
||||
if (mode == BAN_ACCOUNT)
|
||||
account = sAccountMgr->GetId(nameOrIP);
|
||||
account = AccountMgr::GetId(nameOrIP);
|
||||
else if (mode == BAN_CHARACTER)
|
||||
account = sObjectMgr->GetPlayerAccountIdByPlayerName(nameOrIP);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user