mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 07:48:02 +00:00
fix(Scripts/SunwellPlateau): crash in Sinister Reflection Clone spellscript (#22201)
This commit is contained in:
@@ -1003,6 +1003,9 @@ class spell_kiljaeden_sinister_reflection_clone : public SpellScript
|
|||||||
|
|
||||||
void FilterTargets(std::list<WorldObject*>& targets)
|
void FilterTargets(std::list<WorldObject*>& targets)
|
||||||
{
|
{
|
||||||
|
if (targets.empty())
|
||||||
|
return;
|
||||||
|
|
||||||
targets.sort(Acore::ObjectDistanceOrderPred(GetCaster()));
|
targets.sort(Acore::ObjectDistanceOrderPred(GetCaster()));
|
||||||
WorldObject* target = targets.front();
|
WorldObject* target = targets.front();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user