Scripts/Ulduar/Flame Leviathan: Fix crash #3403. Thanks to Shauren for the heads up

This commit is contained in:
Machiavelli
2011-10-08 13:17:45 +02:00
parent 680fce6fd8
commit 9397e7a16f
@@ -1655,6 +1655,12 @@ class spell_pursue : public SpellScriptLoader
{
PrepareSpellScript(spell_pursue_SpellScript);
bool Load()
{
_target = NULL;
return true;
}
void FilterTargets(std::list<Unit*>& targets)
{
targets.remove_if(FlameLeviathanPursuedTargetSelector(GetCaster()));
@@ -1673,7 +1679,6 @@ class spell_pursue : public SpellScriptLoader
void FilterTargetsSubsequently(std::list<Unit*>& targets)
{
ASSERT(_target);
targets.clear();
targets.push_back(_target);
}