diff options
author | Discover- <amort11@hotmail.com> | 2014-01-23 20:09:13 +0100 |
---|---|---|
committer | Discover- <amort11@hotmail.com> | 2014-01-23 20:09:13 +0100 |
commit | cb1964770ea5b018bcbe2d871edc6898cfa7b5ea (patch) | |
tree | e4f9c81a1079a29eb6d87ddae6a737a4359a872e | |
parent | f731116766268a38a58572e57cc8abbac400c5ca (diff) |
Core/Loot: Fix an exploit with CMSG_LOOT using non-creature guids which would allow you to loot despawned chests in some cases.
By @Kiddie
-rw-r--r-- | src/server/game/Handlers/LootHandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Handlers/LootHandler.cpp b/src/server/game/Handlers/LootHandler.cpp index 4fd912298ec..f3a1803dfca 100644 --- a/src/server/game/Handlers/LootHandler.cpp +++ b/src/server/game/Handlers/LootHandler.cpp @@ -223,7 +223,7 @@ void WorldSession::HandleLootOpcode(WorldPacket& recvData) recvData >> guid; // Check possible cheat - if (!_player->IsAlive()) + if (!GetPlayer()->IsAlive() || !IS_CRE_OR_VEH_GUID(guid)) return; GetPlayer()->SendLoot(guid, LOOT_CORPSE); |