PDA

Просмотр полной версии : [10833] Avoid use unsafe remove auras in aura apply code.


newsbot
07.12.2010, 12:40
автор: VladimirMangos


<pre>m src/game/SpellAuras.cpp
m src/game/Unit.cpp
m src/game/Unit.h
m src/shared/revision_nr.h
</pre>
<pre style='white-space:pre-wrap;width:81ex'>[10833] Avoid use unsafe remove auras in aura apply code.

Specailly example Aura::HandleModCharm code where old code
call RemoveSpellsCausingAura or (a) dead and not called,
or (b) will remove aura self at call.

* Added safe for aura holder context version of RemoveSpellsCausingAura
* Cleanup old simple RemoveSpellsCausingAura code also.</pre>




Дальше... (https://github.com/mangos/mangos/commit/c9c220659395753e698487c1fd0826d2a7958dc0)