Skip to content

Commit

Permalink
Linux: Fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa committed Oct 8, 2024
1 parent fcfb719 commit 25e9d64
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/game/BattleGround/BattleGroundHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -626,10 +626,8 @@ void WorldSession::HandleBattlefieldStatusOpcode(WorldPacket& /*recv_data*/)

sWorld.GetBGQueue().GetMessager().AddMessage([idsToCheck, playerGuid = _player->GetObjectGuid(), playerLevel = _player->GetLevel()](BattleGroundQueue* queue)
{
for (auto& data : idsToCheck)
for (auto [queueSlot, bgQueueTypeId] : idsToCheck)
{
auto queueSlot = data.first;
BattleGroundQueueTypeId bgQueueTypeId = data.second;
BattleGroundQueueItem& queueItem = queue->GetBattleGroundQueue(bgQueueTypeId);
GroupQueueInfo queueInfo;
if (!queueItem.GetPlayerGroupInfoData(playerGuid, &queueInfo))
Expand Down
2 changes: 1 addition & 1 deletion src/game/BattleGround/BattleGroundQueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,7 @@ BattleGroundQueueItem& BattleGroundQueue::GetBattleGroundQueue(BattleGroundQueue
return m_battleGroundQueues[bgQueueTypeId];
}

void BattleGroundQueue::SetNextRatingDiscardUpdate(std::chrono::milliseconds& timePoint)
void BattleGroundQueue::SetNextRatingDiscardUpdate(std::chrono::milliseconds timePoint)
{
TimePoint now = std::chrono::time_point_cast<std::chrono::milliseconds>(Clock::now());;
m_nextRatingDiscardUpdate = now + timePoint;
Expand Down
2 changes: 1 addition & 1 deletion src/game/BattleGround/BattleGroundQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class BattleGroundQueue
BattleGroundInQueueInfo* GetFreeSlotInstance(BattleGroundTypeId bgTypeId, uint32 instanceId);
BattleGroundQueueItem& GetBattleGroundQueue(BattleGroundQueueTypeId bgQueueTypeId);

void SetNextRatingDiscardUpdate(std::chrono::milliseconds& timePoint);
void SetNextRatingDiscardUpdate(std::chrono::milliseconds timePoint);

bool IsTesting() const { return m_testing; }
void SetTesting(bool state) { m_testing = state; }
Expand Down

0 comments on commit 25e9d64

Please sign in to comment.