From 95a3aa985a4ef8198846bc61dfffbc2d5d831282 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Wed, 1 Apr 2020 04:15:00 +0200 Subject: [PATCH] Fix byte shift There is no issue associated with this for the vanila game as all skills are within the first 32 spells. This fix can also be found in Hellfire. --- Source/control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/control.cpp b/Source/control.cpp index 70dbea0d1..63abb93be 100644 --- a/Source/control.cpp +++ b/Source/control.cpp @@ -1730,7 +1730,7 @@ char GetSBookTrans(int ii, BOOL townok) if (plr[myplr]._pISpells & (__int64)1 << (ii - 1)) { st = RSPLTYPE_CHARGES; } - if (plr[myplr]._pAblSpells & 1 << (ii - 1)) { /// BUGFIX: missing (__int64) + if (plr[myplr]._pAblSpells & (__int64)1 << (ii - 1)) { /// BUGFIX: missing (__int64) (fixed) st = RSPLTYPE_SKILL; } if (st == RSPLTYPE_SPELL) {