From e743f207c86efaf81021feb0b85347bf3bcae219 Mon Sep 17 00:00:00 2001 From: crazywh1t3 <32772327+crazywh1t3@users.noreply.github.com> Date: Mon, 16 Feb 2026 12:10:17 +0200 Subject: [PATCH] fix(item): process all 6 shared stash pages instead of 5 The loop was breaking at i > 4 (processing 5 pages) while the stashedGold array is [6]int. Changed to i > 5 to process all 6 shared stash pages correctly. --- pkg/memory/item.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/memory/item.go b/pkg/memory/item.go index 6f833e0..5385c98 100644 --- a/pkg/memory/item.go +++ b/pkg/memory/item.go @@ -42,8 +42,8 @@ func (gd *GameReader) Inventory(rawPlayerUnits RawPlayerUnits, hover data.HoverD stashedGold := [6]int{mainPlayerStashedGold.Value, 0, 0, 0, 0, 0} for i, puKey := range stashPlayerUnitOrder { - if i > 4 { - break // max 5 shared stash pages + if i > 5 { + break // max 6 shared stash pages } if stashGold, found := stashPlayerUnits[puKey].BaseStats.FindStat(stat.StashGold, 0); found { stashedGold[i+1] = stashGold.Value