aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Battlegrounds/SilvershardMines
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts/Battlegrounds/SilvershardMines')
-rw-r--r--src/server/scripts/Battlegrounds/SilvershardMines/battleground_silvershard_mines.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/scripts/Battlegrounds/SilvershardMines/battleground_silvershard_mines.cpp b/src/server/scripts/Battlegrounds/SilvershardMines/battleground_silvershard_mines.cpp
index 30721e47425..e23de84bab0 100644
--- a/src/server/scripts/Battlegrounds/SilvershardMines/battleground_silvershard_mines.cpp
+++ b/src/server/scripts/Battlegrounds/SilvershardMines/battleground_silvershard_mines.cpp
@@ -715,7 +715,8 @@ public:
}
}
- void DoForPlayersInControlZone(std::function<void(GameObject const*, Player*)> const& fn) const
+ template <std::invocable<GameObject const*, Player*> Action>
+ void DoForPlayersInControlZone(Action const& fn) const
{
if (GameObject const* controlZone = GetControlZone())
for (ObjectGuid const& playerGuid : *controlZone->GetInsidePlayers())