From af433d8890b78ee71075585bb08749a5ed9c9018 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Thu, 28 Oct 2021 01:39:43 +0200 Subject: [PATCH] Check for null spells --- Source/control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/control.cpp b/Source/control.cpp index ec3dd0adc..c4c296080 100644 --- a/Source/control.cpp +++ b/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());