Merge pull request #25278 from ZehMatt/use-after-move

RideList.cpp: Don't use the variable after it is moved
This commit is contained in:
Matt authored and GitHub committed 2025-09-28 22:13:54 +03:00
commit f21af599cd
1 file changed
+3 -1
+3 -1
View File
@@ -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));