Core/NetworkIO: implemented undelete opcodes and moved char create/delete packets to new packet classes

This commit is contained in:
joschiwald
2014-11-03 19:11:14 +01:00
parent 064154c540
commit 52bd9a771e
30 changed files with 965 additions and 303 deletions

View File

@@ -389,7 +389,7 @@ void fixNULLfields(std::string &line)
DumpReturn PlayerDumpReader::LoadDump(std::string const& file, uint32 account, std::string name, ObjectGuid::LowType guid)
{
uint32 charcount = AccountMgr::GetCharactersCount(account);
if (charcount >= 10)
if (charcount >= sWorld->getIntConfig(CONFIG_CHARACTERS_PER_REALM))
return DUMP_TOO_MANY_CHARS;
FILE* fin = fopen(file.c_str(), "r");