From 621ef5fe8c0edb227e06d342e7dba36d10fc5d53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Sat, 22 Mar 2025 17:53:47 +0200 Subject: [PATCH] Make it work with older compilers --- src/openrct2-ui/drawing/engines/opengl/TransparencyDepth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2-ui/drawing/engines/opengl/TransparencyDepth.cpp b/src/openrct2-ui/drawing/engines/opengl/TransparencyDepth.cpp index 9562172198..09a070bfd3 100644 --- a/src/openrct2-ui/drawing/engines/opengl/TransparencyDepth.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/TransparencyDepth.cpp @@ -60,8 +60,8 @@ namespace OpenRCT2::Ui if (top == bottom) continue; - x_sweep.emplace_back(left, top, bottom, true); - x_sweep.emplace_back(right, top, bottom, false); + x_sweep.push_back({ left, top, bottom, true }); + x_sweep.push_back({ right, top, bottom, false }); } std::sort(x_sweep.begin(), x_sweep.end(), [](const XData& a, const XData& b) -> bool {