From d0f4310c4417fb5dc8e89061adf4ce113caa4227 Mon Sep 17 00:00:00 2001 From: ariel- Date: Mon, 22 Jan 2018 23:55:33 -0300 Subject: Core/Entities: don't allow client control if player is still affected by any lose of control state (cherry picked from commit e315e41d36061fc88dfa09bfa0da1fbc0c00826f) --- src/server/game/Tools/PlayerDump.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/server/game/Tools/PlayerDump.cpp') diff --git a/src/server/game/Tools/PlayerDump.cpp b/src/server/game/Tools/PlayerDump.cpp index 571571da749..c4139c435df 100644 --- a/src/server/game/Tools/PlayerDump.cpp +++ b/src/server/game/Tools/PlayerDump.cpp @@ -703,16 +703,16 @@ void PlayerDumpWriter::PopulateGuids(ObjectGuid::LowType guid) switch (baseTable.StoredType) { case GUID_TYPE_ITEM: - if (ObjectGuid::LowType guid = (*result)[0].GetUInt64()) - _items.insert(guid); + if (ObjectGuid::LowType itemLowGuid = (*result)[0].GetUInt32()) + _items.insert(itemLowGuid); break; case GUID_TYPE_MAIL: - if (uint32 guid = (*result)[0].GetUInt32()) - _mails.insert(guid); + if (uint32 mailLowGuid = (*result)[0].GetUInt32()) + _mails.insert(mailLowGuid); break; case GUID_TYPE_PET: - if (uint32 guid = (*result)[0].GetUInt32()) - _pets.insert(guid); + if (uint32 petLowGuid = (*result)[0].GetUInt32()) + _pets.insert(petLowGuid); break; case GUID_TYPE_EQUIPMENT_SET: if (uint64 eqSetId = (*result)[0].GetUInt64()) -- cgit v1.2.3