From b232bdf3a38676c41b9d8b6d03f5f583ea1299d3 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Wed, 25 Oct 2017 17:50:21 +0200 Subject: [PATCH] Make some variables const --- src/openrct2/ride/ride.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/openrct2/ride/ride.c b/src/openrct2/ride/ride.c index 51f28ee23f..0f5a182408 100644 --- a/src/openrct2/ride/ride.c +++ b/src/openrct2/ride/ride.c @@ -8236,12 +8236,12 @@ void fix_ride_entrance_and_exit_locations() { for (sint32 stationIndex = 0; stationIndex < MAX_STATIONS; stationIndex++) { - LocationXY8 entranceLoc = ride->entrances[stationIndex]; - LocationXY8 exitLoc = ride->exits[stationIndex]; - uint8 entranceExitHeight = ride->station_heights[stationIndex]; - bool fixEntrance = false; - bool fixExit = false; - rct_map_element * mapElement; + const LocationXY8 entranceLoc = ride->entrances[stationIndex]; + const LocationXY8 exitLoc = ride->exits[stationIndex]; + uint8 entranceExitHeight = ride->station_heights[stationIndex]; + bool fixEntrance = false; + bool fixExit = false; + const rct_map_element * mapElement; // Skip if the station has no entrance if (entranceLoc.xy != RCT_XY8_UNDEFINED)