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
1 changed files with 1 additions and 1 deletions

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