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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user