aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Handlers/LootHandler.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-09-29 22:01:40 +0200
committerShauren <shauren.trinity@gmail.com>2025-09-29 22:56:35 +0200
commit5ef99978c03eb5cc7d40c1f1a1cc4e5c78f8ea27 (patch)
tree230d706c5738136329af74047f8e874c214ccce9 /src/server/game/Handlers/LootHandler.cpp
parentbc7be2a08438a1d327586d4a57d4e99944b86418 (diff)
Core/Misc: Reduce differences between branches
Diffstat (limited to 'src/server/game/Handlers/LootHandler.cpp')
-rw-r--r--src/server/game/Handlers/LootHandler.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/server/game/Handlers/LootHandler.cpp b/src/server/game/Handlers/LootHandler.cpp
index c3f12dce104..73ae6746f4d 100644
--- a/src/server/game/Handlers/LootHandler.cpp
+++ b/src/server/game/Handlers/LootHandler.cpp
@@ -468,11 +468,8 @@ void WorldSession::HandleLootMasterGiveOpcode(WorldPacket& recvData)
return;
}
- // list of players allowed to receive this item in trade
- GuidSet looters = item.GetAllowedLooters();
-
// now move item from loot to target inventory
- Item* newitem = target->StoreNewItem(dest, item.itemid, true, item.randomPropertyId, looters);
+ Item* newitem = target->StoreNewItem(dest, item.itemid, true, item.randomPropertyId, item.GetAllowedLooters());
target->SendNewItem(newitem, uint32(item.count), false, false, true);
target->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_LOOT_ITEM, item.itemid, item.count);
target->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_LOOT_TYPE, loot->loot_type, item.count);