Fix another crash on page 2 of spell picker

This commit is contained in:
2025-02-18 14:52:41 -06:00
committed by Celtic Minstrel
parent f80f8a932a
commit 907c459419

View File

@@ -1572,6 +1572,7 @@ bool pc_can_cast_spell(const cPlayer& pc,eSkill type) {
} }
bool pc_can_cast_spell(const cPlayer& pc,eSpell spell_num) { bool pc_can_cast_spell(const cPlayer& pc,eSpell spell_num) {
if(spell_num == eSpell::NONE) return false;
short level,store_w_cast; short level,store_w_cast;
eSkill type = (*spell_num).type; eSkill type = (*spell_num).type;