diff options
author | Shauren <shauren.trinity@gmail.com> | 2022-09-11 18:21:01 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-09-11 18:21:01 +0200 |
commit | e9d083a2ee59d297271b04f3b7fb63808f7f0c8c (patch) | |
tree | d32b537dcc05ff251d326f2f9424d4defe205fba /src/server/game/Handlers/LootHandler.cpp | |
parent | 78698463ff6b20255148fb647e9ad33a487bb09d (diff) |
Core/Loot: Set loot guid and type in Loot constructor
Diffstat (limited to 'src/server/game/Handlers/LootHandler.cpp')
-rw-r--r-- | src/server/game/Handlers/LootHandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Handlers/LootHandler.cpp b/src/server/game/Handlers/LootHandler.cpp index 08f43c41a25..7978f4be74c 100644 --- a/src/server/game/Handlers/LootHandler.cpp +++ b/src/server/game/Handlers/LootHandler.cpp @@ -235,7 +235,7 @@ void WorldSession::HandleLootMoneyOpcode(WorldPackets::Loot::LootMoney& /*packet if (!loot) continue; - loot->NotifyMoneyRemoved(); + loot->NotifyMoneyRemoved(player->GetMap()); if (shareMoney && player->GetGroup()) //item, pickpocket and players can be looted only single player { Group* group = player->GetGroup(); @@ -571,7 +571,7 @@ void WorldSession::HandleLootMasterGiveOpcode(WorldPackets::Loot::MasterLootItem item.count = 0; item.is_looted = true; - loot->NotifyItemRemoved(slotid); + loot->NotifyItemRemoved(slotid, GetPlayer()->GetMap()); --loot->unlootedCount; } |