diff options
author | Shauren <shauren.trinity@gmail.com> | 2025-10-03 10:23:52 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2025-10-03 10:23:52 +0200 |
commit | da03588f1ce43af0e6671564abff9b98d1b6c978 (patch) | |
tree | fbca697a46b051e2ba5b056d48e0fc31afc7255a /src | |
parent | 16edee0b0ea805f5d8f0abf5eedb2c66a6edb23f (diff) |
Scripts/Gilneas: Remove unneccessary null check from 47df5bdc22cd62120afb21af29fd1aa0f30bf251
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/EasternKingdoms/Gilneas/gilneas_chapter_1.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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 |