From a01cafbf69a7dda60fc32171b757eece10c1b5c9 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Thu, 18 Mar 2021 21:04:19 +0100 Subject: [PATCH] :rotating_light: Apply spell_id --- Source/control.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/control.cpp b/Source/control.cpp index 202bead34..1d8f3a501 100644 --- a/Source/control.cpp +++ b/Source/control.cpp @@ -497,7 +497,7 @@ void ToggleSpell(int slot) { Uint64 spells; - if (plr[myplr]._pSplHotKey[slot] == -1) { + if (plr[myplr]._pSplHotKey[slot] == SPL_INVALID) { return; } @@ -990,7 +990,7 @@ void DoAutoMap() */ void CheckPanelInfo() { - int i, c, v, s, xend, yend; + int i, c, s, xend, yend; panelflag = FALSE; ClearPanel(); @@ -1022,7 +1022,7 @@ void CheckPanelInfo() pinfoflag = TRUE; strcpy(tempstr, "Hotkey: 's'"); AddPanelString(tempstr, TRUE); - v = plr[myplr]._pRSpell; + spell_id v = plr[myplr]._pRSpell; if (v != SPL_INVALID) { switch (plr[myplr]._pRSplType) { case RSPLTYPE_SKILL: