1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +01:00

Replace hard-coded index with constant

This commit is contained in:
Gymnasiast
2019-12-21 14:00:45 +01:00
parent dcc720c1ec
commit 11cc07a2b8

View File

@@ -4931,7 +4931,7 @@ static bool ride_initialise_cable_lift_track(Ride* ride, bool isApplying)
location = ride->stations[stationIndex].Start;
if (!location.isNull())
break;
if (stationIndex == 3)
if (stationIndex == (MAX_STATIONS - 1))
{
gGameCommandErrorText = STR_CABLE_LIFT_HILL_MUST_START_IMMEDIATELY_AFTER_STATION;
return false;