From 51b6c0230b1cff66c4ab6258668db21a503d9598 Mon Sep 17 00:00:00 2001 From: galaxyhaxz Date: Sat, 9 Jun 2018 03:22:38 -0500 Subject: [PATCH] Fix incorrectly decompiled code --- Source/control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/control.cpp b/Source/control.cpp index d35bb28..5785fca 100644 --- a/Source/control.cpp +++ b/Source/control.cpp @@ -2798,7 +2798,7 @@ void __cdecl DrawSpellBook() v1 = plr[myplr]._pISpells[1] | plr[myplr]._pMemSpells[1] | plr[myplr]._pAblSpells[1]; do { - v2 = *(&attribute_inc_rects[3].h + v9 + 7 * sbooktab); + v2 = SpellPages[0][v9 + 7 * sbooktab - 1]; // *(&attribute_inc_rects[3].h + v9 + 7 * sbooktab); /* check */ if ( v2 != -1 && v1 & ((unsigned __int64)((__int64)1 << ((unsigned char)v2 - 1)) >> 32) | v0 & (unsigned int)((__int64)1 << ((unsigned char)v2 - 1)) ) {