diff options
author | ariel- <ariel-@users.noreply.github.com> | 2018-01-22 23:55:33 -0300 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-06-16 21:26:57 +0200 |
commit | d0f4310c4417fb5dc8e89061adf4ce113caa4227 (patch) | |
tree | 311575f8d3d004140628d0f47f06539538d51112 /src/server/game/Tools/PlayerDump.cpp | |
parent | c77925da4a320df5be5eaeb1fc799df50e22c041 (diff) |
Core/Entities: don't allow client control if player is still affected by any lose of control state
(cherry picked from commit e315e41d36061fc88dfa09bfa0da1fbc0c00826f)
Diffstat (limited to 'src/server/game/Tools/PlayerDump.cpp')
-rw-r--r-- | src/server/game/Tools/PlayerDump.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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()) |