mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 23:04:36 +01:00
Convert g_window_list to a std::vector
This commit is contained in:
@@ -106,9 +106,9 @@ static void input_update_tooltip(rct_window * w, rct_widgetindex widgetIndex, si
|
||||
*/
|
||||
void game_handle_input()
|
||||
{
|
||||
for (rct_window * w = g_window_list; w < gWindowNextSlot; w++)
|
||||
for (auto& w : g_window_list)
|
||||
{
|
||||
window_event_unknown_07_call(w);
|
||||
window_event_unknown_07_call(&w);
|
||||
}
|
||||
|
||||
invalidate_all_windows_after_input();
|
||||
@@ -135,9 +135,9 @@ void game_handle_input()
|
||||
process_mouse_tool(x, y);
|
||||
}
|
||||
|
||||
for (rct_window * w = g_window_list; w < gWindowNextSlot; w++)
|
||||
for (auto& w : g_window_list)
|
||||
{
|
||||
window_event_unknown_08_call(w);
|
||||
window_event_unknown_08_call(&w);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user