From be48fbc32ac49673ce2415b76cb447a61585ed01 Mon Sep 17 00:00:00 2001 From: Keader Date: Tue, 9 Jun 2020 09:52:44 -0300 Subject: [PATCH] Scripts/ShadowfangKeep: Fixed a crash in spellscript --- .../EasternKingdoms/ShadowfangKeep/boss_apothecary_hummel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/scripts/EasternKingdoms/ShadowfangKeep/boss_apothecary_hummel.cpp b/src/server/scripts/EasternKingdoms/ShadowfangKeep/boss_apothecary_hummel.cpp index b3321480eaf..463cea557c2 100644 --- a/src/server/scripts/EasternKingdoms/ShadowfangKeep/boss_apothecary_hummel.cpp +++ b/src/server/scripts/EasternKingdoms/ShadowfangKeep/boss_apothecary_hummel.cpp @@ -422,6 +422,9 @@ class spell_apothecary_lingering_fumes : public SpellScriptLoader std::list triggers; caster->GetCreatureListWithEntryInGrid(triggers, NPC_VIAL_BUNNY, 100.0f); + if (triggers.empty()) + return; + Creature* trigger = Trinity::Containers::SelectRandomContainerElement(triggers); caster->GetMotionMaster()->MovePoint(0, trigger->GetPosition());