From d7ba6d8962440181eb0fe206ebc5d2e2d24ebd4d Mon Sep 17 00:00:00 2001 From: Sergey Semushin Date: Wed, 11 Sep 2019 22:30:31 +0300 Subject: [PATCH] AutoPlace bin exact. --- Source/inv.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/inv.cpp b/Source/inv.cpp index 9c7179478..85d26f85a 100644 --- a/Source/inv.cpp +++ b/Source/inv.cpp @@ -690,10 +690,10 @@ BOOL AutoPlace(int pnum, int ii, int sx, int sy, BOOL saveflag) xx = 0; } for (i = 0; i < sx && done; i++) { - if (xx < 10) { - done = plr[pnum].InvGrid[xx + yy] == 0; - } else { + if (xx >= 10) { done = FALSE; + } else { + done = plr[pnum].InvGrid[xx + yy] == 0; } xx++; }