From da03588f1ce43af0e6671564abff9b98d1b6c978 Mon Sep 17 00:00:00 2001 From: Shauren Date: Fri, 3 Oct 2025 10:23:52 +0200 Subject: Scripts/Gilneas: Remove unneccessary null check from 47df5bdc22cd62120afb21af29fd1aa0f30bf251 --- src/server/scripts/EasternKingdoms/Gilneas/gilneas_chapter_1.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/server/scripts') diff --git a/src/server/scripts/EasternKingdoms/Gilneas/gilneas_chapter_1.cpp b/src/server/scripts/EasternKingdoms/Gilneas/gilneas_chapter_1.cpp index 915c48f09f6..a249d16a0f5 100644 --- a/src/server/scripts/EasternKingdoms/Gilneas/gilneas_chapter_1.cpp +++ b/src/server/scripts/EasternKingdoms/Gilneas/gilneas_chapter_1.cpp @@ -154,8 +154,7 @@ class spell_gilneas_knocking : public SpellScript void HandleEffect() { - if (SpellInfo const* spellInfo = GetSpellInfo()) - GetCaster()->CastSpell(GetCaster(), spellInfo->GetEffect(RAND(EFFECT_1, EFFECT_2)).CalcValue(), true); + GetCaster()->CastSpell(GetCaster(), GetEffectInfo(RAND(EFFECT_1, EFFECT_2)).CalcValue(), true); } void Register() override -- cgit v1.2.3