From ed40badcb10db1ffce477801731428e45ee073d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Mon, 29 Mar 2021 09:52:52 +0200 Subject: [PATCH] Initialise variable to fix Launchpad ppc64el builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `src/openrct2-ui/windows/TopToolbar.cpp:2112:13: error: ‘side’ may be used uninitialized in this function [-Werror=maybe-uninitialized]` --- src/openrct2-ui/windows/TopToolbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2-ui/windows/TopToolbar.cpp b/src/openrct2-ui/windows/TopToolbar.cpp index 4e3f1de7b7..3b7a1545da 100644 --- a/src/openrct2-ui/windows/TopToolbar.cpp +++ b/src/openrct2-ui/windows/TopToolbar.cpp @@ -2109,7 +2109,7 @@ static void top_toolbar_tool_update_land(const ScreenCoordsXY& screenPos) int16_t tool_size = gLandToolSize; std::optional mapTile; - uint8_t side; + uint8_t side{}; gMapSelectFlags &= ~MAP_SELECT_FLAG_ENABLE; if (tool_size == 1)