From bd444eb6e133d02cc035c556d2f0d95c6cf0c7dc Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sun, 19 Jul 2020 14:36:37 +0200 Subject: [PATCH] Scripts/Items: fixed a warning reported by gcc --- src/server/scripts/Spells/spell_item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp index b358cc1c41e..c5947a2b59f 100644 --- a/src/server/scripts/Spells/spell_item.cpp +++ b/src/server/scripts/Spells/spell_item.cpp @@ -5016,7 +5016,7 @@ class spell_item_tipping_of_the_scales : public SpellScript SpellCastResult CheckCast() { - if (AuraEffect const* effect = GetCaster()->GetAuraEffect(SPELL_WEIGHT_OF_A_FEATHER, EFFECT_0, GetCaster()->GetGUID())) + if (GetCaster()->GetAuraEffect(SPELL_WEIGHT_OF_A_FEATHER, EFFECT_0, GetCaster()->GetGUID())) return SPELL_CAST_OK; return SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW;