From 56a2bde9eb90f1b45018ab66dc596dd873166352 Mon Sep 17 00:00:00 2001 From: Juliano Goncalves Date: Thu, 8 Oct 2020 18:19:41 -0300 Subject: [PATCH] Remove duplicated readied spell validation The logic is already performed inside 'CalcPlrScrolls', which is called in both places. --- Source/inv.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Source/inv.cpp b/Source/inv.cpp index 09181aca5..bdf51e5f8 100644 --- a/Source/inv.cpp +++ b/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; }