From 3f417c95bb99e26a7b19b78ca812b0cb8ad925ae Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Tue, 9 Apr 2019 14:06:54 +0200 Subject: [PATCH] Clean up SetSpell --- Source/control.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Source/control.cpp b/Source/control.cpp index e2fa6038d..bf68afcf8 100644 --- a/Source/control.cpp +++ b/Source/control.cpp @@ -580,15 +580,12 @@ void DrawSpellList() void SetSpell() { - int v0; // eax - spselflag = 0; if (pSpell != -1) { ClearPanel(); - v0 = myplr; drawpanflag = 255; - plr[v0]._pRSpell = pSpell; - _LOBYTE(plr[v0]._pRSplType) = pSplType; + plr[myplr]._pRSpell = pSpell; + plr[myplr]._pRSplType = pSplType; } } // 4B8834: using guessed type int pSpell;