1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

Fix wrong highlighted tab in object selection window

This commit is contained in:
Ted John
2018-02-04 12:34:41 +00:00
parent ca12a4336b
commit 522e113929

View File

@@ -909,7 +909,7 @@ static void window_editor_object_selection_invalidate(rct_window *w)
w->pressed_widgets |= (1 << WIDX_FILTER_RIDE_TAB_ALL);
else {
for (sint32 i = 0; i < 6; i++) {
if (_filter_flags & (1 << (5 + i)))
if (_filter_flags & (1 << (_numSourceGameItems + i)))
w->pressed_widgets |= (uint64)(1ULL << (WIDX_FILTER_RIDE_TAB_TRANSPORT + i));
}
}