Core/Tools: Fix pdump write

This commit is contained in:
Aokromes
2016-07-19 11:08:51 +02:00
parent 9179cd478d
commit 11c028f4bb
2 changed files with 2 additions and 3 deletions

View File

@@ -1 +0,0 @@
UPDATE `creature_model_info` SET `BoundingRadius`=7.5, `CombatReach`=6 WHERE `DisplayID`=30890;

View File

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