Browse Source

Add BUGFIX comment in DrawSpell

pull/405/head^2^2
Gleb Mazovetskiy 7 years ago committed by Anders Jenbo
parent
commit
1b24dac942
  1. 2
      Source/control.cpp

2
Source/control.cpp

@ -380,6 +380,8 @@ void DrawSpell()
spl = plr[myplr]._pRSpell;
st = plr[myplr]._pRSplType;
// BUGFIX: Move the next line into the if statement to avoid OOB (SPL_INVALID is -1)
tlvl = plr[myplr]._pISplLvlAdd + plr[myplr]._pSplLvl[spl];
if (st == RSPLTYPE_SPELL && spl != SPL_INVALID) {
if (!CheckSpell(myplr, spl, RSPLTYPE_SPELL, TRUE))

Loading…
Cancel
Save