From 8fbb649cc9fb01a31b28856681f92f6c5de29808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Sun, 28 Sep 2025 21:34:49 +0300 Subject: [PATCH] Don't use the variable after it is moved --- src/openrct2-ui/windows/RideList.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openrct2-ui/windows/RideList.cpp b/src/openrct2-ui/windows/RideList.cpp index fc0d03232f..c013567713 100644 --- a/src/openrct2-ui/windows/RideList.cpp +++ b/src/openrct2-ui/windows/RideList.cpp @@ -968,10 +968,12 @@ namespace OpenRCT2::Ui::Windows rideRef.windowInvalidateFlags &= ~RIDE_INVALIDATE_RIDE_LIST; } + const auto filterApplies = IsFiltered(rideName); + RideListEntry entry{ .Id = rideRef.id, .Name = std::move(rideName), - .Visible = IsFiltered(rideName), + .Visible = filterApplies, }; _rideList.push_back(std::move(entry));