Replace hard-coded index with constant

This commit is contained in:
Gymnasiast 2019-12-21 14:00:45 +01:00
parent dcc720c1ec
commit 11cc07a2b8
No known key found for this signature in database
GPG Key ID: DBFFF47AB2CA3EDD
1 changed files with 1 additions and 1 deletions

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;