From 56ff06a8d25628a30ea1031cf37c27ac6663f7d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Mon, 27 Mar 2023 23:55:09 +0200 Subject: [PATCH] Fix the object editor tab selector Object editor has unusually high WIDX_TAB_1 value making the default 32-bit type not wide enough. --- src/openrct2-ui/windows/EditorObjectSelection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2-ui/windows/EditorObjectSelection.cpp b/src/openrct2-ui/windows/EditorObjectSelection.cpp index 4b0e51ea84..47d565b310 100644 --- a/src/openrct2-ui/windows/EditorObjectSelection.cpp +++ b/src/openrct2-ui/windows/EditorObjectSelection.cpp @@ -1487,7 +1487,7 @@ private: { for (size_t i = 0; i < std::size(ObjectSelectionPages); i++) { - pressed_widgets &= ~(1 << (WIDX_TAB_1 + i)); + pressed_widgets &= ~(1ull << (WIDX_TAB_1 + i)); } pressed_widgets |= 1LL << (WIDX_TAB_1 + selected_tab); }