From 1770f7f0812b5087023eaa9aaec62ae02448e94c Mon Sep 17 00:00:00 2001 From: Asdow <20314541+Asdow@users.noreply.github.com> Date: Fri, 20 Jan 2023 20:41:09 +0200 Subject: [PATCH] Fix illegal array access in imp gear selection (#104) --- Laptop/IMP Gear.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Laptop/IMP Gear.cpp b/Laptop/IMP Gear.cpp index a278e2eb..e8da0ada 100644 --- a/Laptop/IMP Gear.cpp +++ b/Laptop/IMP Gear.cpp @@ -1229,7 +1229,7 @@ void RenderImpGearSelectionChoices(UINT32 pocket) wcscat(tooltipText, L"\n"); wcscat(tooltipText, szIMPGearPocketText[55]); - SetRegionFastHelpText(&gIMPGearInvPoolRegion[i], tooltipText); + SetRegionFastHelpText(&gIMPGearInvPoolRegion[i - pageShift], tooltipText); } // Check if currently selected item is shown in pool and adjust glow coordinates