Browse Source

Fix CalcPlrBooksVals

Fixes bug with books magic requirement found by @dp112
pull/100/head
Sergey Semushin 7 years ago committed by Anders Jenbo
parent
commit
95e5312dd5
  1. 2
      Source/items.cpp

2
Source/items.cpp

@ -733,7 +733,7 @@ void CalcPlrBookVals(int p)
}
for (i = 0; i < plr[p]._pNumInv; i++) {
if (plr[p].InvList[i]._itype == ITYPE_NONE && plr[p].InvList[i]._iMiscId == IMISC_BOOK) {
if (plr[p].InvList[i]._itype == ITYPE_MISC && plr[p].InvList[i]._iMiscId == IMISC_BOOK) {
plr[p].InvList[i]._iMinMag = spelldata[plr[p].InvList[i]._iSpell].sMinInt;
slvl = plr[p]._pSplLvl[plr[p].InvList[i]._iSpell];

Loading…
Cancel
Save