aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeader <keader.android@gmail.com>2020-06-09 09:52:44 -0300
committerGitHub <noreply@github.com>2020-06-09 09:52:44 -0300
commitbe48fbc32ac49673ce2415b76cb447a61585ed01 (patch)
tree7831ed3444ecd0be3fbca1c06f6bf0603c3bb957 /src
parentaeb41e67a92b7cd0c75683a269fb0ca75309e9a0 (diff)
Scripts/ShadowfangKeep: Fixed a crash in spellscript
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/EasternKingdoms/ShadowfangKeep/boss_apothecary_hummel.cpp3
1 files changed, 3 insertions, 0 deletions
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<Creature*> 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());