From 82f0da24b1743d34ce4d98d86708a4e40ce2e8b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Wed, 29 Sep 2021 20:40:57 +0300 Subject: [PATCH] Use int32_t for iterating tiles Co-authored-by: Ted John --- src/openrct2/ride/Ride.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/ride/Ride.cpp b/src/openrct2/ride/Ride.cpp index 63eaebdb7f..df1247b4f8 100644 --- a/src/openrct2/ride/Ride.cpp +++ b/src/openrct2/ride/Ride.cpp @@ -5548,9 +5548,9 @@ void determine_ride_entrance_and_exit_locations() // Search the map to find it. Skip the outer ring of invisible tiles. bool alreadyFoundEntrance = false; bool alreadyFoundExit = false; - for (uint8_t x = 1; x < MAXIMUM_MAP_SIZE_TECHNICAL - 1; x++) + for (int32_t x = 1; x < MAXIMUM_MAP_SIZE_TECHNICAL - 1; x++) { - for (uint8_t y = 1; y < MAXIMUM_MAP_SIZE_TECHNICAL - 1; y++) + for (int32_t y = 1; y < MAXIMUM_MAP_SIZE_TECHNICAL - 1; y++) { TileElement* tileElement = map_get_first_element_at(TileCoordsXY{ x, y });