mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user