From 0cb94ea082a58474d2ea1fa5166372c0bfcec48e Mon Sep 17 00:00:00 2001 From: Shauren Date: Fri, 7 Feb 2025 21:14:48 +0100 Subject: Core/Battlegrounds: Fixed invalid reference to temporary (cherry picked from commit 2fd120da3206a067bc8c9ff88bfbeadc4b6f4641) --- src/server/game/Battlegrounds/Battleground.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/Battlegrounds/Battleground.h b/src/server/game/Battlegrounds/Battleground.h index 1a396c67e70..a51b55f2866 100644 --- a/src/server/game/Battlegrounds/Battleground.h +++ b/src/server/game/Battlegrounds/Battleground.h @@ -442,7 +442,7 @@ class TC_GAME_API Battleground BattlegroundPlayer const* GetBattlegroundPlayerData(ObjectGuid const& playerGuid) const { - auto const& itr = m_Players.find(playerGuid); + auto itr = m_Players.find(playerGuid); if (itr == m_Players.end()) return nullptr; -- cgit v1.2.3