Check for null spells
This commit is contained in:
parent
e9bc05063c
commit
af433d8890
1 changed files with 1 additions and 1 deletions
|
|
@ -1220,7 +1220,7 @@ void CheckPanelInfo()
|
|||
AddPanelString(tempstr);
|
||||
auto &myPlayer = Players[MyPlayerId];
|
||||
const spell_id spellId = myPlayer._pRSpell;
|
||||
if (spellId != SPL_INVALID) {
|
||||
if (spellId != SPL_INVALID && spellId != SPL_NULL) {
|
||||
switch (myPlayer._pRSplType) {
|
||||
case RSPLTYPE_SKILL:
|
||||
strcpy(tempstr, fmt::format(_("{:s} Skill"), pgettext("spell", spelldata[spellId].sSkillText)).c_str());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue