forked from rosebudai/OpenRCT2-Web
Fix #13916: use correct constant for maximum station locations
This commit is contained in:
1 parent
eb52391b9a
commit
329b228cac
2 files changed
+2
-1
No files matched your search
@@ -6966,7 +6966,7 @@ void sub_6CB945(Ride* ride)
|
||||
}
|
||||
}
|
||||
|
||||
FixedVector<TileCoordsXYZD, MAX_STATIONS> locations;
|
||||
FixedVector<TileCoordsXYZD, MAX_STATION_LOCATIONS> locations;
|
||||
for (StationIndex stationId = 0; stationId < MAX_STATIONS; ++stationId)
|
||||
{
|
||||
auto entrance = ride_get_entrance_location(ride, stationId);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user