aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-03-25 16:26:44 -0300
committerariel- <ariel-@users.noreply.github.com>2017-03-25 16:26:44 -0300
commit01aaafb0834d22ff41d7d9904e59d82a4a7f5381 (patch)
treeb84f40542324ece2659d8779d3af3fca5f91b105 /src
parent9d6902331b4d70152623154964ca0308408ada72 (diff)
Core/Auras: fix a deleted memory access crash
Closes #19319
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Auras/SpellAuraEffects.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
index 71dce8bf3d7..d4ec0873f64 100644
--- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
+++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
@@ -627,6 +627,9 @@ void AuraEffect::ChangeAmount(int32 newAmount, bool mark, bool onStackOrReapply)
for (AuraApplication* aurApp : effectApplications)
{
+ if (aurApp->GetRemoveMode() != AURA_REMOVE_NONE)
+ continue;
+
aurApp->GetTarget()->_RegisterAuraEffect(this, true);
HandleEffect(aurApp, handleMask, true);
}