mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[11454] Use ObjectGuid in class Loot
This commit is contained in:
parent
706c97c943
commit
b647835469
5 changed files with 66 additions and 62 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue