From 92b798c48ab88cb5044d25b8c074c68e46f8f6df Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Tue, 21 Jan 2025 12:11:26 -0600 Subject: [PATCH] simplify if-else with identical branches --- src/game/boe.party.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/game/boe.party.cpp b/src/game/boe.party.cpp index 19943171..6aa27207 100644 --- a/src/game/boe.party.cpp +++ b/src/game/boe.party.cpp @@ -1880,9 +1880,7 @@ static bool pick_spell_select_led(cDialog& me, std::string id, eKeyMod mods, con me["feedback"].setText(bad_spell); } else { - if(store_situation == eSkill::MAGE_SPELLS) - store_spell = (on_which_spell_page == 0) ? item_hit : spell_index[item_hit]; - else store_spell = (on_which_spell_page == 0) ? item_hit : spell_index[item_hit]; + store_spell = (on_which_spell_page == 0) ? item_hit : spell_index[item_hit]; draw_spell_info(me, store_situation, store_spell); put_spell_led_buttons(me, store_situation, store_spell);