Core/Entities: Fix looting gold from vehicles.

This commit is contained in:
Machiavelli
2011-06-28 23:11:15 +02:00
parent 9e58c6e753
commit e5d253170e
@@ -140,6 +140,7 @@ void WorldSession::HandleLootMoneyOpcode(WorldPacket & /*recv_data*/)
break; break;
} }
case HIGHGUID_UNIT: case HIGHGUID_UNIT:
case HIGHGUID_VEHICLE:
{ {
Creature* creature = player->GetMap()->GetCreature(guid); Creature* creature = player->GetMap()->GetCreature(guid);
bool lootAllowed = creature && creature->isAlive() == (player->getClass() == CLASS_ROGUE && creature->lootForPickPocketed); bool lootAllowed = creature && creature->isAlive() == (player->getClass() == CLASS_ROGUE && creature->lootForPickPocketed);