From a33fbfa234ebfa310d108a0605b7a72a2672c1c8 Mon Sep 17 00:00:00 2001 From: Duncan Date: Sat, 28 Mar 2020 10:02:26 +0000 Subject: [PATCH] Fix guest list when in filtered mode. (#11102) Mistake during refactor didn't consider that find_groups resets global vars. --- src/openrct2-ui/windows/GuestList.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/openrct2-ui/windows/GuestList.cpp b/src/openrct2-ui/windows/GuestList.cpp index 6cfffa3034..20360c615a 100644 --- a/src/openrct2-ui/windows/GuestList.cpp +++ b/src/openrct2-ui/windows/GuestList.cpp @@ -234,13 +234,13 @@ void window_guest_list_refresh_list() { return; } - _window_guest_list_last_find_groups_wait = 0; - _window_guest_list_last_find_groups_tick = 0; - window_guest_list_find_groups(); // Only the individual tab uses the GuestList so no point calculating it if (_window_guest_list_selected_tab != PAGE_INDIVIDUAL) { + _window_guest_list_last_find_groups_wait = 0; + _window_guest_list_last_find_groups_tick = 0; + window_guest_list_find_groups(); return; } @@ -343,6 +343,7 @@ rct_window* window_guest_list_open_with_filter(int32_t type, int32_t index) } } + window_guest_list_refresh_list(); return w; } @@ -594,6 +595,7 @@ static void window_guest_list_scrollmousedown(rct_window* w, int32_t scrollIndex window_guest_list_widgets[WIDX_TRACKING].type = WWT_FLATBTN; w->Invalidate(); w->scrolls[0].v_top = 0; + window_guest_list_refresh_list(); } break; }