Skip to content
Permalink
Browse files

Core/Loot: Fix an exploit with CMSG_LOOT using non-creature guids wh…

…i… …ch would allow you to loot despawned chests in some cases.

Co-Authored-By: crypticaz <crypticaz@users.noreply.github.com>
  • Loading branch information...
AbraKabastard and Crypticaz committed May 22, 2019
1 parent 3bae650 commit 0b6a55b9c8b2c005150e37afa8095470436810ee
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/game/LootHandler.cpp
@@ -261,7 +261,7 @@ void WorldSession::HandleLootOpcode(WorldPacket& recv_data)
recv_data >> guid;

// Check possible cheat
if (!_player->IsAlive())
if (!GetPlayer()->IsAlive())
return;

GetPlayer()->SendLoot(guid, LOOT_CORPSE);

0 comments on commit 0b6a55b

Please sign in to comment.
You can’t perform that action at this time.