Browse Source

Check for null spells

pull/3308/head
Anders Jenbo 4 years ago
parent
commit
af433d8890
  1. 2
      Source/control.cpp

2
Source/control.cpp

@ -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…
Cancel
Save