From 139ceb0a5cbc7ddb0fcd1ec010cd6e42a94f03a8 Mon Sep 17 00:00:00 2001 From: killerwife Date: Sat, 16 Sep 2023 23:36:51 +0200 Subject: [PATCH] Spell: Add safeguard against affect checking nullptr spell Case for scripting melee affect using override scripts --- src/game/Spells/SpellAuras.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/Spells/SpellAuras.cpp b/src/game/Spells/SpellAuras.cpp index c7574f605d..9058e3d621 100755 --- a/src/game/Spells/SpellAuras.cpp +++ b/src/game/Spells/SpellAuras.cpp @@ -867,6 +867,9 @@ bool Aura::isAffectedOnSpell(SpellEntry const* spellProto) const if (m_affectOverriden) return OnAffectCheck(spellProto); + if (!spellProto) + return false; + if (m_spellmod) return m_spellmod->isAffectedOnSpell(spellProto);