1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-31 10:45:16 +01:00

Fix the object editor tab selector

Object editor has unusually high WIDX_TAB_1 value making the default
32-bit type not wide enough.
This commit is contained in:
Michał Janiszewski
2023-03-27 23:55:09 +02:00
parent be82582063
commit 56ff06a8d2

View File

@@ -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);
}