From 24fbe44059983177575de9534ed954862999a926 Mon Sep 17 00:00:00 2001 From: Sergey Semushin Date: Wed, 11 Sep 2019 22:32:23 +0300 Subject: [PATCH] Clean up SpecialAutoPlace. --- Source/inv.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/inv.cpp b/Source/inv.cpp index ae00da980..069d052bc 100644 --- a/Source/inv.cpp +++ b/Source/inv.cpp @@ -753,10 +753,10 @@ BOOL SpecialAutoPlace(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++; }