Browse Source

Remove duplicated readied spell validation

The logic is already performed inside 'CalcPlrScrolls', which is
called in both places.
pull/940/head
Juliano Goncalves 6 years ago committed by Anders Jenbo
parent
commit
56a2bde9eb
  1. 4
      Source/inv.cpp

4
Source/inv.cpp

@ -1670,8 +1670,6 @@ void RemoveInvItem(int pnum, int iv)
}
CalcPlrScrolls(pnum);
EnsureValidReadiedSpell(plr[pnum]);
}
#ifdef HELLFIRE
@ -1722,8 +1720,6 @@ void RemoveSpdBarItem(int pnum, int iv)
plr[pnum].SpdList[iv]._itype = ITYPE_NONE;
CalcPlrScrolls(pnum);
EnsureValidReadiedSpell(plr[pnum]);
force_redraw = 255;
}

Loading…
Cancel
Save