Core/Auras: fix a deleted memory access crash

Closes #19319
This commit is contained in:
ariel- authored and Aokromes committed 2017-03-26 06:15:52 +02:00
1 parent c226dca01e
commit 402ad3dad7
1 file changed
+3
@@ -727,6 +727,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);
}