Scripts/Sethekk Halls: Added missing empty check before Trinity::Containers::SelectRandomContainerElement
Ref #20317
This commit is contained in:
1 parent
d8de5abbd1
commit
2ce760af40
1 file changed
+3
@@ -180,6 +180,9 @@ class spell_talon_king_ikiss_blink : public SpellScriptLoader
|
||||
|
||||
void FilterTargets(std::list<WorldObject*>& targets)
|
||||
{
|
||||
if (targets.empty())
|
||||
return;
|
||||
|
||||
WorldObject* target = Trinity::Containers::SelectRandomContainerElement(targets);
|
||||
targets.clear();
|
||||
targets.push_back(target);
|
||||
|
||||
Reference in new issue
Block a user