Browse Source

fix speedbook crash (#5730)

pull/5736/head
DakkJaniels 3 years ago committed by GitHub
parent
commit
0c1c8d0aa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Source/panels/spell_list.cpp

4
Source/panels/spell_list.cpp

@ -216,7 +216,7 @@ std::vector<SpellListItem> 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++) {

Loading…
Cancel
Save