diff --git a/src/server/scripts/EasternKingdoms/zone_westfall.cpp b/src/server/scripts/EasternKingdoms/zone_westfall.cpp index fb9db1ba3fd..0b362ac6c82 100644 --- a/src/server/scripts/EasternKingdoms/zone_westfall.cpp +++ b/src/server/scripts/EasternKingdoms/zone_westfall.cpp @@ -362,7 +362,7 @@ struct npc_westfall_hobo_witness : public ScriptedAI void JustDied(Unit* who) override { - if (who->IsCreature() && who->ToCreature()->IsAIEnabled()) + if (who && who->IsCreature() && who->ToCreature()->IsAIEnabled()) who->ToCreature()->AI()->DoAction(ACTION_AGGRO_HOBO_DONE); me->CastSpell(me, SPELL_SUMMON_RAGAMUFFIN_LOOTER); } diff --git a/src/server/scripts/Kalimdor/CavernsOfTime/TheBlackMorass/the_black_morass.cpp b/src/server/scripts/Kalimdor/CavernsOfTime/TheBlackMorass/the_black_morass.cpp index c549432a2f2..f812474c673 100644 --- a/src/server/scripts/Kalimdor/CavernsOfTime/TheBlackMorass/the_black_morass.cpp +++ b/src/server/scripts/Kalimdor/CavernsOfTime/TheBlackMorass/the_black_morass.cpp @@ -151,7 +151,7 @@ public: void JustDied(Unit* killer) override { - if (killer->GetEntry() == me->GetEntry()) + if (killer && killer->GetEntry() == me->GetEntry()) return; Talk(SAY_DEATH);