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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user