diff --git a/src/openrct2/ride/Ride.cpp b/src/openrct2/ride/Ride.cpp index 34e2af7edd..fecb16669f 100644 --- a/src/openrct2/ride/Ride.cpp +++ b/src/openrct2/ride/Ride.cpp @@ -6966,7 +6966,7 @@ void sub_6CB945(Ride* ride) } } - FixedVector locations; + FixedVector locations; for (StationIndex stationId = 0; stationId < MAX_STATIONS; ++stationId) { auto entrance = ride_get_entrance_location(ride, stationId); diff --git a/src/openrct2/ride/Ride.h b/src/openrct2/ride/Ride.h index c0b5a1b458..850e874fdc 100644 --- a/src/openrct2/ride/Ride.h +++ b/src/openrct2/ride/Ride.h @@ -46,6 +46,7 @@ struct Staff; #define RIDE_TYPE_NULL 255 #define RIDE_ADJACENCY_CHECK_DISTANCE 5 +constexpr uint16_t const MAX_STATION_LOCATIONS = MAX_STATIONS * 2; // Entrance and exit per station constexpr uint16_t const MAX_INVERSIONS = RCT12_MAX_INVERSIONS; constexpr uint16_t const MAX_GOLF_HOLES = RCT12_MAX_GOLF_HOLES; constexpr uint16_t const MAX_HELICES = RCT12_MAX_HELICES;