mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
More missing part
This commit is contained in:
@@ -2213,6 +2213,7 @@ class TC_GAME_API Player : public Unit, public GridObject<Player>
|
||||
void SendLootError(ObjectGuid guid, LootError error) const;
|
||||
void SendLootRelease(ObjectGuid guid) const;
|
||||
void SendNotifyLootItemRemoved(uint8 lootSlot) const;
|
||||
void SendNotifyCurrencyLootRemoved(uint8 lootSlot);
|
||||
void SendNotifyLootMoneyRemoved() const;
|
||||
|
||||
/*********************************************************/
|
||||
|
||||
@@ -651,13 +651,13 @@ void Loot::NotifyMoneyRemoved()
|
||||
void Loot::NotifyCurrencyRemoved(uint8 lootIndex)
|
||||
{
|
||||
// notify all players that are looting this that the currency was removed
|
||||
std::set<uint64>::iterator i_next;
|
||||
for (std::set<uint64>::iterator i = PlayersLooting.begin(); i != PlayersLooting.end(); i = i_next)
|
||||
GuidSet::iterator i_next;
|
||||
for (GuidSet::iterator i = PlayersLooting.begin(); i != PlayersLooting.end(); i = i_next)
|
||||
{
|
||||
i_next = i;
|
||||
++i_next;
|
||||
if (Player* player = ObjectAccessor::FindPlayer(*i))
|
||||
player->SendNotifyCurrencyLootRemoved(lootIndex);
|
||||
player->SendNotifyCurrencyLootRemoved();
|
||||
else
|
||||
PlayersLooting.erase(i);
|
||||
}
|
||||
@@ -1921,4 +1921,4 @@ void LoadLootTables()
|
||||
LoadLootTemplates_Spell();
|
||||
|
||||
LoadLootTemplates_Reference();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user