Core/PlayerDump: Fix collecting pet guids

This commit is contained in:
Shauren
2020-07-21 20:09:51 +02:00
parent 4b8c4f6064
commit 7968fec011
2 changed files with 3 additions and 3 deletions

View File

@@ -711,7 +711,7 @@ void PlayerDumpWriter::PopulateGuids(ObjectGuid::LowType guid)
_mails.insert(guid);
break;
case GUID_TYPE_PET:
if (ObjectGuid::LowType guid = (*result)[0].GetUInt64())
if (uint32 guid = (*result)[0].GetUInt32())
_pets.insert(guid);
break;
case GUID_TYPE_EQUIPMENT_SET:

View File

@@ -97,8 +97,8 @@ class TC_GAME_API PlayerDumpWriter : public PlayerDump
bool AppendTable(StringTransaction& trans, ObjectGuid::LowType guid, TableStruct const& tableStruct, DumpTable const& dumpTable);
void PopulateGuids(ObjectGuid::LowType guid);
std::set<ObjectGuid::LowType> _pets;
std::set<ObjectGuid::LowType> _mails;
std::set<uint32> _pets;
std::set<uint32> _mails;
std::set<ObjectGuid::LowType> _items;
std::set<uint64> _itemSets;