diff options
author | ariel- <ariel-@users.noreply.github.com> | 2017-03-25 16:26:44 -0300 |
---|---|---|
committer | ariel- <ariel-@users.noreply.github.com> | 2017-03-25 16:26:44 -0300 |
commit | 01aaafb0834d22ff41d7d9904e59d82a4a7f5381 (patch) | |
tree | b84f40542324ece2659d8779d3af3fca5f91b105 /src | |
parent | 9d6902331b4d70152623154964ca0308408ada72 (diff) |
Core/Auras: fix a deleted memory access crash
Closes #19319
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Spells/Auras/SpellAuraEffects.cpp | 3 |
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); } |