From 6f4fe8a14272382250e8b974f4a36dfd2500c873 Mon Sep 17 00:00:00 2001 From: Vladimir Olteanu Date: Fri, 17 Jun 2022 17:02:49 +0300 Subject: [PATCH] Fix typo in CanPlaceRandomObject --- Source/objects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/objects.cpp b/Source/objects.cpp index ab03bdfc3..a15140de3 100644 --- a/Source/objects.cpp +++ b/Source/objects.cpp @@ -368,7 +368,7 @@ void InitRndLocBigObj(int min, int max, _object_id objtype) bool CanPlaceRandomObject(Point position, Displacement standoff) { - for (int yy = -standoff.deltaY; yy <= standoff.deltaX; yy++) { + for (int yy = -standoff.deltaY; yy <= standoff.deltaY; yy++) { for (int xx = -standoff.deltaX; xx <= standoff.deltaX; xx++) { Point tile = position + Displacement { xx, yy }; if (!RndLocOk(tile.x, tile.y))