From 9ef3eec47d25419d3887b5d0a0435a4abe8e6e3e Mon Sep 17 00:00:00 2001 From: quale <69253510+quale@users.noreply.github.com> Date: Wed, 5 Aug 2020 17:17:49 +0200 Subject: [PATCH] Fix #10751: Save mazes in their entirety --- src/openrct2/ride/TrackDesign.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/ride/TrackDesign.cpp b/src/openrct2/ride/TrackDesign.cpp index f1e2f82312..429cfac5fc 100644 --- a/src/openrct2/ride/TrackDesign.cpp +++ b/src/openrct2/ride/TrackDesign.cpp @@ -361,7 +361,7 @@ rct_string_id TrackDesign::CreateTrackDesignMaze(const Ride& ride) // x is defined here as we can start the search // on tile start_x, start_y but then the next row // must restart on 0 - for (int32_t y = startLoc.y, x = startLoc.y; y < MAXIMUM_MAP_SIZE_BIG; y += COORDS_XY_STEP) + for (int32_t y = startLoc.y, x = startLoc.x; y < MAXIMUM_MAP_SIZE_BIG; y += COORDS_XY_STEP) { for (; x < MAXIMUM_MAP_SIZE_BIG; x += COORDS_XY_STEP) {