aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorccrs <ccrs@users.noreply.github.com>2019-07-19 18:52:07 +0200
committerccrs <ccrs@users.noreply.github.com>2019-07-19 18:52:07 +0200
commitba8d3254c22c271e69f10ee6b87d51e36d680451 (patch)
tree20e69be20e7c81079720b5ff3429e948e8e108d1
parent0e3e4353a1824dd6e40ca10a01c4465aa1b1fbad (diff)
Core/Player: d1dc0e2 followup
build error going to be fixed soon..ish
-rw-r--r--src/server/game/Entities/Player/Player.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index 691618d1b36..afa99e28032 100644
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -24553,7 +24553,8 @@ void Player::RestoreBaseRune(uint8 index)
{
std::vector<AuraEffect const*> removeList;
std::unordered_set<AuraEffect const*>& auras = m_runes->runes[index].ConvertAuras;
- std::remove_if(auras.begin(), auras.end(), [&removeList](AuraEffect const* storedAura) -> bool
+
+ auto criteria = [&removeList](AuraEffect const* storedAura) -> bool
{
// AuraEffect already gone
if (!storedAura)
@@ -24569,7 +24570,9 @@ void Player::RestoreBaseRune(uint8 index)
// If rune was converted by a non-passive aura that is still active we should keep it converted
return false;
- });
+ };
+
+ auras.erase(std::remove_if(auras.begin(), auras.end(), criteria), auras.end());
if (!auras.empty())
return;