mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-02 03:35:09 +01:00
Change g_window_list to use the heap for windows
This commit is contained in:
@@ -507,9 +507,9 @@ public:
|
||||
{
|
||||
for (auto& w : g_window_list)
|
||||
{
|
||||
if (w.viewport == viewport)
|
||||
if (w->viewport == viewport)
|
||||
{
|
||||
return &w;
|
||||
return w.get();
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user