From 95e5312dd557bc44ada71a5479c8bbfab958dcfc Mon Sep 17 00:00:00 2001 From: Sergey Semushin Date: Sun, 5 May 2019 11:12:30 +0300 Subject: [PATCH] Fix CalcPlrBooksVals Fixes bug with books magic requirement found by @dp112 --- Source/items.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/items.cpp b/Source/items.cpp index b179a4fd8..cb33e23bb 100644 --- a/Source/items.cpp +++ b/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];