From 0c1c8d0aa059cef4dceb91af65961462782c4fca Mon Sep 17 00:00:00 2001 From: DakkJaniels <6080734+DakkJaniels@users.noreply.github.com> Date: Sat, 28 Jan 2023 21:27:48 -0500 Subject: [PATCH] fix speedbook crash (#5730) --- Source/panels/spell_list.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/panels/spell_list.cpp b/Source/panels/spell_list.cpp index db22cbb4e..ec81d4603 100644 --- a/Source/panels/spell_list.cpp +++ b/Source/panels/spell_list.cpp @@ -216,7 +216,7 @@ std::vector GetSpellListItems() mask = myPlayer._pISpells; break; default: - break; + continue; } int8_t j = SPL_FIREBOLT; for (uint64_t spl = 1; j < MAX_SPELLS; spl <<= 1, j++) { @@ -339,6 +339,8 @@ void DoSpeedBook() case SpellType::Charges: spells = myPlayer._pISpells; break; + default: + continue; } uint64_t spell = 1; for (int j = 1; j < MAX_SPELLS; j++) {