Jump to content

[patch] Fix crash when attemping to access deleted aura holder


Guest zergtmn

Recommended Posts

alternative fix in [10255]. Can't check only last aura since aura remove can trigger different holder remove..

And how it's related to this crash?

Crash happens on line:

if (Aura *aura = holder->GetAuraByEffectIndex(SpellEffectIndex(i)))

"holder" can be deleted in previous iteration but then accessed again.

Auras from same holder expire at the same time in most cases. But you force to start search from beginning every aura remove... Your solution is slower than mine.

Search will already start from beginning if at least one aura gets removed because of line:

removedAura = true;

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use