From 11cc07a2b8657828ca19e2a41034e6e960979a7d Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 21 Dec 2019 14:00:45 +0100 Subject: [PATCH] Replace hard-coded index with constant --- src/openrct2/ride/Ride.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/ride/Ride.cpp b/src/openrct2/ride/Ride.cpp index 9cfe9912d5..02cbd62229 100644 --- a/src/openrct2/ride/Ride.cpp +++ b/src/openrct2/ride/Ride.cpp @@ -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;