Instead mark spell as delatable mark it as executed and referenced from Unit current...
commitab5a9d1fb0db4da70ad2e39db03e928b6bdcdade
authorVladimirMangos <vladimir@getmangos.com>
Sun, 2 Nov 2008 22:09:18 +0000 (3 01:09 +0300)
committerVladimirMangos <vladimir@getmangos.com>
Sun, 2 Nov 2008 22:48:14 +0000 (3 01:48 +0300)
tree2babbe9f15e048b3c57f40858f1d20898a752ab1
parentbe3294d15338cb36a0fb56d3216f7374f0f3a223
Instead mark spell as delatable mark it as executed and referenced from Unit current spells array and not deleted spell in like cases.

This is solve crashs if spell deleted at caster die in result triggered spells casting chain from currently executed spell.
src/framework/Utilities/EventProcessor.cpp
src/framework/Utilities/EventProcessor.h
src/game/Map.cpp
src/game/Spell.cpp
src/game/Spell.h
src/game/SpellAuras.cpp
src/game/Unit.cpp