Browse Source

Apply bugfix to SHRINE_ENCHANTED

pull/973/head
Anders Jenbo 5 years ago
parent
commit
ed825ba102
  1. 2
      Source/objects.cpp

2
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]++;

Loading…
Cancel
Save