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
This commit is contained in:
Discover-
2014-01-23 20:09:13 +01:00
parent f731116766
commit cb1964770e

View File

@@ -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);