diff --git a/src/game/Loot/LootMgr.cpp b/src/game/Loot/LootMgr.cpp index 14fdc2e6dc..f8a0d4253b 100644 --- a/src/game/Loot/LootMgr.cpp +++ b/src/game/Loot/LootMgr.cpp @@ -2349,7 +2349,7 @@ ByteBuffer& operator<<(ByteBuffer& b, LootItem const& li) // // Adds an entry to the group (at loading stage) -void LootTemplate::LootGroup::AddEntry(LootStoreItem& item) +void LootTemplate::LootGroup::AddEntry(LootStoreItem const& item) { if (item.chance != 0) ExplicitlyChanced.push_back(item); @@ -2558,7 +2558,7 @@ bool LootTemplate::LootGroup::CheckLootRefs(LootIdSet* ref_set, LootIdSet& prevR // // Adds an entry to the group (at loading stage) -void LootTemplate::AddEntry(LootStoreItem& item) +void LootTemplate::AddEntry(LootStoreItem const& item) { if (item.group > 0) // Group { diff --git a/src/game/Loot/LootMgr.h b/src/game/Loot/LootMgr.h index 91b7a58a61..051e4568a6 100644 --- a/src/game/Loot/LootMgr.h +++ b/src/game/Loot/LootMgr.h @@ -299,10 +299,10 @@ class LootStore class LootTemplate { private: - class LootTemplate::LootGroup // A set of loot definitions for items (refs are not allowed) + class LootGroup // A set of loot definitions for items (refs are not allowed) { public: - void AddEntry(LootStoreItem& item); // Adds an entry to the group (at loading stage) + void AddEntry(LootStoreItem const& item); // Adds an entry to the group (at loading stage) bool HasQuestDrop() const; // True if group includes at least 1 quest drop entry bool HasQuestDropForPlayer(Player const* player) const; // The same for active quests of the player @@ -325,7 +325,7 @@ class LootTemplate public: // Adds an entry to the group (at loading stage) - void AddEntry(LootStoreItem& item); + void AddEntry(LootStoreItem const& item); // Rolls for every item in the template and adds the rolled items the the loot void Process(Loot& loot, Player const* lootOwner, bool rate, LootStatsData* lootStatsData = nullptr) const;