fix(Scripts/SunwellPlateau): crash in Sinister Reflection Clone spellscript (#22201)
This commit is contained in:
parent
77ac0ce718
commit
3bae9804ba
1 changed files with 3 additions and 0 deletions
|
|
@ -1003,6 +1003,9 @@ class spell_kiljaeden_sinister_reflection_clone : public SpellScript
|
|||
|
||||
void FilterTargets(std::list<WorldObject*>& targets)
|
||||
{
|
||||
if (targets.empty())
|
||||
return;
|
||||
|
||||
targets.sort(Acore::ObjectDistanceOrderPred(GetCaster()));
|
||||
WorldObject* target = targets.front();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue