1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 05:23:04 +01:00

Convert g_window_list to a std::vector

This commit is contained in:
Ted John
2018-06-16 02:14:59 +01:00
parent a716b4aa28
commit 0f6138f8b6
9 changed files with 472 additions and 437 deletions

View File

@@ -505,11 +505,11 @@ public:
rct_window* GetOwner(const rct_viewport* viewport) override
{
for (auto w = g_window_list; w < gWindowNextSlot; w++)
for (auto& w : g_window_list)
{
if (w->viewport == viewport)
if (w.viewport == viewport)
{
return w;
return &w;
}
}
return nullptr;