1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 05:23:04 +01:00

Cast fixes

This commit is contained in:
ζeh Matt
2021-09-04 18:36:35 +03:00
parent 18fa68813d
commit ec65a04883

View File

@@ -1552,7 +1552,7 @@ static void window_ride_anchor_border_widgets(rct_window* w)
static std::optional<StationIndex> GetStationIndexFromViewSelection(const rct_window& w)
{
const auto* ride = get_ride(w.number);
const auto* ride = get_ride(static_cast<ride_id_t>(w.number));
if (ride == nullptr)
return {};