From 7b7cee52db1ffebdf503fedd6b8f518e59f6094f Mon Sep 17 00:00:00 2001 From: obligaron Date: Sat, 2 Apr 2022 09:07:34 +0200 Subject: [PATCH] AddItemToStashGrid: Use PointsInRectangleRange with a starting position (#4297) --- Source/qol/stash.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/qol/stash.cpp b/Source/qol/stash.cpp index bae0f90a2..96ad99e81 100644 --- a/Source/qol/stash.cpp +++ b/Source/qol/stash.cpp @@ -52,8 +52,8 @@ Art StashNavButtonArt; */ void AddItemToStashGrid(unsigned page, Point position, uint16_t stashListIndex, Size itemSize) { - for (auto point : PointsInRectangleRange({ { 0, 0 }, itemSize })) { - Stash.stashGrids[page][position.x + point.x][position.y + point.y] = stashListIndex + 1; + for (auto point : PointsInRectangleRange({ position, itemSize })) { + Stash.stashGrids[page][point.x][point.y] = stashListIndex + 1; } }