Skip to content

Commit

Permalink
Should fix nix build
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberium committed Jan 31, 2024
1 parent 81eb38e commit 652d5dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/game/Loot/LootMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
{
Expand Down
6 changes: 3 additions & 3 deletions src/game/Loot/LootMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;

Expand Down

0 comments on commit 652d5dc

Please sign in to comment.