1
0
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:
ζeh Matt
2024-12-04 21:16:59 +02:00
parent a18268be93
commit 2c6c1161ed

View File

@@ -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;