1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 07:13:07 +01:00

Fix #9467: Crash when windows create new window when being closed (#9470)

This commit is contained in:
ζeh Matt
2019-06-27 22:28:07 +02:00
committed by Michael Steenbeek
parent 7703774437
commit e149722a15
6 changed files with 164 additions and 244 deletions

View File

@@ -689,10 +689,9 @@ static void window_invalidate_pressed_image_buttons(rct_window* w)
*/
void invalidate_all_windows_after_input()
{
for (auto& w : g_window_list)
{
window_update_scroll_widgets(w.get());
window_invalidate_pressed_image_buttons(w.get());
window_event_resize_call(w.get());
}
window_visit_each([](rct_window* w) {
window_update_scroll_widgets(w);
window_invalidate_pressed_image_buttons(w);
window_event_resize_call(w);
});
}