[11454] Use ObjectGuid in class Loot

This commit is contained in:
VladimirMangos 2011-05-09 19:09:45 +04:00
parent 706c97c943
commit b647835469
5 changed files with 66 additions and 62 deletions

View file

@ -8253,7 +8253,7 @@ void Player::SendLoot(ObjectGuid guid, LootType loot_type)
// add 'this' player as one of the players that are looting 'loot'
if (permission != NONE_PERMISSION)
loot->AddLooter(GetGUID());
loot->AddLooter(GetObjectGuid());
if (loot_type == LOOT_CORPSE && !guid.IsItem())
SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_LOOTING);