fix(Scripts/SunwellPlateau): crash in Sinister Reflection Clone spellscript (#22201)

This commit is contained in:
Jelle Meeus
2025-05-24 20:30:50 +02:00
committed by GitHub
parent 77ac0ce718
commit 3bae9804ba

View File

@@ -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();