aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMachiavelli <machiavelli.trinity@gmail.com>2011-06-28 23:08:09 +0200
committerMachiavelli <machiavelli.trinity@gmail.com>2011-06-28 23:11:15 +0200
commite5d253170e8715c81d2abb4be527bac3ca6d0bd4 (patch)
tree9a0683bcc9711e5a27ee47e6080bfba1401f3631
parent9e58c6e7533787fc0a5f6431855ab379b8c8b92a (diff)
Core/Entities: Fix looting gold from vehicles.
-rwxr-xr-xsrc/server/game/Server/Protocol/Handlers/LootHandler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/game/Server/Protocol/Handlers/LootHandler.cpp b/src/server/game/Server/Protocol/Handlers/LootHandler.cpp
index bb2944a9857..a415faa6844 100755
--- a/src/server/game/Server/Protocol/Handlers/LootHandler.cpp
+++ b/src/server/game/Server/Protocol/Handlers/LootHandler.cpp
@@ -140,6 +140,7 @@ void WorldSession::HandleLootMoneyOpcode(WorldPacket & /*recv_data*/)
break;
}
case HIGHGUID_UNIT:
+ case HIGHGUID_VEHICLE:
{
Creature* creature = player->GetMap()->GetCreature(guid);
bool lootAllowed = creature && creature->isAlive() == (player->getClass() == CLASS_ROGUE && creature->lootForPickPocketed);