fix(Core/commands): Realign columns for command ".pdump" (#2699)

This commit is contained in:
Barbz
2020-02-25 08:49:25 +01:00
committed by GitHub
parent 9e307455a8
commit 6869848364

View File

@@ -308,10 +308,10 @@ bool PlayerDumpWriter::DumpTable(std::string& dump, uint32 guid, char const*tabl
break;
case DTT_CHARACTER:
{
if (result->GetFieldCount() <= 68) // avoid crashes on next check
if (result->GetFieldCount() <= 74) // avoid crashes on next check
sLog->outCrash("PlayerDumpWriter::DumpTable - Trying to access non-existing or wrong positioned field (`deleteInfos_Account`) in `characters` table.");
if (result->Fetch()[68].GetUInt32()) // characters.deleteInfos_Account - if filled error
if (result->Fetch()[74].GetUInt32()) // characters.deleteInfos_Account - if filled error
return false;
break;
}
@@ -538,11 +538,11 @@ DumpReturn PlayerDumpReader::LoadDump(const std::string& file, uint32 account, s
ROLLBACK(DUMP_FILE_BROKEN);
const char null[5] = "NULL";
if (!changenth(line, 74, null)) // characters.deleteInfos_Account
if (!changenth(line, 75, null)) // characters.deleteInfos_Account
ROLLBACK(DUMP_FILE_BROKEN);
if (!changenth(line, 75, null)) // characters.deleteInfos_Name
if (!changenth(line, 76, null)) // characters.deleteInfos_Name
ROLLBACK(DUMP_FILE_BROKEN);
if (!changenth(line, 76, null)) // characters.deleteDate
if (!changenth(line, 77, null)) // characters.deleteDate
ROLLBACK(DUMP_FILE_BROKEN);
break;
}