aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-03-25 16:26:44 -0300
committerfunjoker <funjoker109@gmail.com>2020-04-24 17:18:50 +0200
commitda1232093758849b114ea8966ee48b682cefeae9 (patch)
tree061bf21c3742e0d9898c0ff32bf29e743c649333
parent054a6a9e2e43926b0f37c953e596a03ad2b0846a (diff)
Core/Auras: fix a deleted memory access crash
Closes #19319 (cherry picked from commit 01aaafb0834d22ff41d7d9904e59d82a4a7f5381)
-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 3b17a2dbf61..566ecfd9df8 100644
--- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
+++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
@@ -790,6 +790,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);
}