Merge pull request #853 from Viste/pdump

Core/Characters: fix pdump load after #755 and close issue #850
This commit is contained in:
Barbz 2018-05-10 16:23:15 +02:00 committed by GitHub
commit ec7124240d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -531,18 +531,18 @@ DumpReturn PlayerDumpReader::LoadDump(const std::string& file, uint32 account, s
PreparedQueryResult result = CharacterDatabase.Query(stmt);
if (result)
if (!changenth(line, 37, "1")) // characters.at_login set to "rename on login"
if (!changenth(line, 38, "1")) // characters.at_login set to "rename on login"
ROLLBACK(DUMP_FILE_BROKEN);
}
else if (!changenth(line, 3, name.c_str())) // characters.name
ROLLBACK(DUMP_FILE_BROKEN);
const char null[5] = "NULL";
if (!changenth(line, 69, null)) // characters.deleteInfos_Account
if (!changenth(line, 74, null)) // characters.deleteInfos_Account
ROLLBACK(DUMP_FILE_BROKEN);
if (!changenth(line, 70, null)) // characters.deleteInfos_Name
if (!changenth(line, 75, null)) // characters.deleteInfos_Name
ROLLBACK(DUMP_FILE_BROKEN);
if (!changenth(line, 71, null)) // characters.deleteDate
if (!changenth(line, 76, null)) // characters.deleteDate
ROLLBACK(DUMP_FILE_BROKEN);
break;
}