diff --git a/Source/objects.cpp b/Source/objects.cpp index c2ca20991..df1c7f3a8 100644 --- a/Source/objects.cpp +++ b/Source/objects.cpp @@ -3565,7 +3565,7 @@ void OperateShrine(int pnum, int i, int sType) } if (cnt > 1) { spell = 1; - for (j = SPL_FIREBOLT; j <= maxSpells; j++) { // BUGFIX: < MAX_SPELLS, there is no spell with MAX_SPELLS index + for (j = SPL_FIREBOLT; j < maxSpells; j++) { // BUGFIX: < MAX_SPELLS, there is no spell with MAX_SPELLS index (fixed) if (plr[pnum]._pMemSpells & spell) { if (plr[pnum]._pSplLvl[j] < MAX_SPELL_LEVEL) plr[pnum]._pSplLvl[j]++;