Browse Source

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.
pull/683/head
Anders Jenbo 6 years ago
parent
commit
95a3aa985a
  1. 2
      Source/control.cpp

2
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) {

Loading…
Cancel
Save