More missing part

This commit is contained in:
Aokromes
2017-01-23 22:07:53 +01:00
parent 68f67b5eab
commit 09a6602c32
2 changed files with 5 additions and 4 deletions

View File

@@ -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;
/*********************************************************/

View File

@@ -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();
}
}