Core/Auras: fix a deleted memory access crash

Closes #19319
This commit is contained in:
ariel-
2017-03-25 16:26:44 -03:00
parent 9d6902331b
commit 01aaafb083

View File

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