mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
Core/Characters: fix player dump load command
This commit is contained in:
@@ -531,18 +531,18 @@ DumpReturn PlayerDumpReader::LoadDump(const std::string& file, uint32 account, s
|
|||||||
PreparedQueryResult result = CharacterDatabase.Query(stmt);
|
PreparedQueryResult result = CharacterDatabase.Query(stmt);
|
||||||
|
|
||||||
if (result)
|
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);
|
ROLLBACK(DUMP_FILE_BROKEN);
|
||||||
}
|
}
|
||||||
else if (!changenth(line, 3, name.c_str())) // characters.name
|
else if (!changenth(line, 3, name.c_str())) // characters.name
|
||||||
ROLLBACK(DUMP_FILE_BROKEN);
|
ROLLBACK(DUMP_FILE_BROKEN);
|
||||||
|
|
||||||
const char null[5] = "NULL";
|
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);
|
ROLLBACK(DUMP_FILE_BROKEN);
|
||||||
if (!changenth(line, 70, null)) // characters.deleteInfos_Name
|
if (!changenth(line, 75, null)) // characters.deleteInfos_Name
|
||||||
ROLLBACK(DUMP_FILE_BROKEN);
|
ROLLBACK(DUMP_FILE_BROKEN);
|
||||||
if (!changenth(line, 71, null)) // characters.deleteDate
|
if (!changenth(line, 76, null)) // characters.deleteDate
|
||||||
ROLLBACK(DUMP_FILE_BROKEN);
|
ROLLBACK(DUMP_FILE_BROKEN);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user