diff options
-rw-r--r-- | src/game/SpellEffects.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index c061606c4db..66dba8c19a5 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -7603,8 +7603,8 @@ void Spell::EffectCastButtons(uint32 i) for (; n_buttons; n_buttons--, button_id++) { ActionButton const* ab = p_caster->GetActionButton(button_id); - if (!ab || ab->GetAction() != ACTION_BUTTON_SPELL) - continue;; + if (!ab || ab->GetType() != ACTION_BUTTON_SPELL) + continue; uint32 spell_id = ab->GetAction(); if (!spell_id) |