From c5297dfcddc36e279ee85cd1d9fa79fed1cb4aad Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Sun, 12 Jan 2020 14:26:15 +0100 Subject: [PATCH] Fix #10550: Hovering the mouse cursor with path on a certain height level works weird (#10552) --- src/openrct2-ui/windows/Footpath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2-ui/windows/Footpath.cpp b/src/openrct2-ui/windows/Footpath.cpp index 3930fcf0bb..90d1c98623 100644 --- a/src/openrct2-ui/windows/Footpath.cpp +++ b/src/openrct2-ui/windows/Footpath.cpp @@ -769,7 +769,7 @@ static void window_footpath_set_provisional_path_at_point(ScreenCoordsXY screenC break; } } - uint8_t z = tileElement->GetBaseZ(); + auto z = tileElement->GetBaseZ(); if (slope & RAISE_FOOTPATH_FLAG) { slope &= ~RAISE_FOOTPATH_FLAG;