diff options
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r-- | crawl-ref/source/spl-cast.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index f9c865450d..61be1b39c5 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -245,6 +245,9 @@ static bool _spell_no_hostile_in_range(spell_type spell, int minRange) int list_spells(bool toggle_with_I, bool viewing, int minRange) { + if (toggle_with_I && get_spell_by_letter('I') != SPELL_NO_SPELL) + toggle_with_I = false; + ToggleableMenu spell_menu(MF_SINGLESELECT | MF_ANYPRINTABLE | MF_ALWAYS_SHOW_MORE | MF_ALLOW_FORMATTING); #ifdef USE_TILE |