Fixed pdump write...

...however we should consider to use field names instead of index to avoid future issues after table altered
This commit is contained in:
Yehonal
2016-03-22 20:04:41 +01:00
parent 993c266260
commit 9346946d05

View File

@@ -315,10 +315,10 @@ bool PlayerDumpWriter::DumpTable(std::string& dump, ObjectGuid::LowType guid, ch
break;
case DTT_CHARACTER:
{
if (result->GetFieldCount() <= 68) // avoid crashes on next check
if (result->GetFieldCount() <= 73) // avoid crashes on next check
TC_LOG_FATAL("misc", "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()[73].GetUInt32()) // characters.deleteInfos_Account - if filled error
return false;
break;
}