From c470d84210685b771e20b14a728aca0dcf210233 Mon Sep 17 00:00:00 2001 From: Tulio Leao Date: Mon, 6 Jan 2020 12:10:38 -0300 Subject: [PATCH] Fix #10524: Banners not placeable above certain height (#10528) --- src/openrct2/actions/BannerPlaceAction.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/actions/BannerPlaceAction.hpp b/src/openrct2/actions/BannerPlaceAction.hpp index 2a5a59786e..a8ffea97cc 100644 --- a/src/openrct2/actions/BannerPlaceAction.hpp +++ b/src/openrct2/actions/BannerPlaceAction.hpp @@ -77,7 +77,7 @@ public: return MakeResult(GA_ERROR::NOT_OWNED, STR_CANT_POSITION_THIS_HERE, STR_LAND_NOT_OWNED_BY_PARK); } - uint8_t baseHeight = _loc.z + PATH_HEIGHT_STEP; + auto baseHeight = _loc.z + PATH_HEIGHT_STEP; BannerElement* existingBannerElement = map_get_banner_element_at({ _loc.x, _loc.y, baseHeight }, _loc.direction); if (existingBannerElement != nullptr) {