Core/Auras: fix a deleted memory access crash

Closes #19319
This commit is contained in:
ariel-
2017-03-25 16:26:44 -03:00
committed by Aokromes
parent c226dca01e
commit 402ad3dad7

View File

@@ -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);
}