From 7ddecfb4b365e7e92a4a5ffd4355c669c4287099 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Thu, 21 Jan 2021 13:27:35 +0100 Subject: [PATCH] Update spell_item.cpp --- src/server/scripts/Spells/spell_item.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp index 12d030ddc9..d0c2d7fd2b 100644 --- a/src/server/scripts/Spells/spell_item.cpp +++ b/src/server/scripts/Spells/spell_item.cpp @@ -1563,11 +1563,7 @@ public: bool Validate(SpellInfo const* /*spellInfo*/) override { - if (!sSpellMgr->GetSpellInfo(SPELL_INSTANT_STATUE)) - { - return false; - } - return true; + return static_cast(sSpellMgr->GetSpellInfo(SPELL_INSTANT_STATUE)); } void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)