mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 14:42:56 +01:00
Remove copying the list of windows, no longer required
This commit is contained in:
@@ -94,8 +94,7 @@ std::list<std::shared_ptr<WindowBase>>::iterator WindowGetIterator(const WindowB
|
||||
|
||||
void WindowVisitEach(std::function<void(WindowBase*)> func)
|
||||
{
|
||||
auto windowList = g_window_list;
|
||||
for (auto& w : windowList)
|
||||
for (auto& w : g_window_list)
|
||||
{
|
||||
if (w->flags & WF_DEAD)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user