From 30bfe457811225da7a2ac6746e01bfa93d5e3aa6 Mon Sep 17 00:00:00 2001 From: Stefan Mielke Date: Thu, 13 May 2021 20:32:48 -0300 Subject: [PATCH] One pixel was not being calculated on the X axis when trying to find for an inventory slot to put the item. --- Source/inv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/inv.cpp b/Source/inv.cpp index 73f3d8da6..66579c7ba 100644 --- a/Source/inv.cpp +++ b/Source/inv.cpp @@ -854,7 +854,7 @@ void CheckInvPaste(int pnum, int mx, int my) yo = PANEL_TOP; } - if (i >= InvRect[r].X + xo && i < InvRect[r].X + xo + INV_SLOT_SIZE_PX) { + if (i >= InvRect[r].X + xo && i <= InvRect[r].X + xo + INV_SLOT_SIZE_PX) { if (j >= InvRect[r].Y + yo - INV_SLOT_SIZE_PX - 1 && j < InvRect[r].Y + yo) { done = true; r--;