Core/Entities: Fix looting gold from vehicles.

This commit is contained in:
Machiavelli
2011-06-28 23:08:09 +02:00
parent 9e58c6e753
commit e5d253170e

View File

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