AccountMgr singleton converted to namespace with free functions as it has no internal state
This commit is contained in:
@@ -382,7 +382,7 @@ void fixNULLfields(std::string &line)
|
||||
|
||||
DumpReturn PlayerDumpReader::LoadDump(const std::string& file, uint32 account, std::string name, uint32 guid)
|
||||
{
|
||||
uint32 charcount = sAccountMgr->GetCharactersCount(account);
|
||||
uint32 charcount = AccountMgr::GetCharactersCount(account);
|
||||
if (charcount >= 10)
|
||||
return DUMP_TOO_MANY_CHARS;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user