From 97ded2d7c4edd00e24801220755d119ef46ea312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Fri, 27 Aug 2021 15:31:40 -0700 Subject: [PATCH] Use reference and not copy (#15303) --- src/openrct2/ride/coaster/LoopingRollerCoaster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp b/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp index be93f9f8a3..a869a5f50f 100644 --- a/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp @@ -97,7 +97,7 @@ static void looping_rc_track_station( { SPR_LOOPING_RC_FLAT_CHAINED_SW_NE, SPR_STATION_BASE_B_SW_NE }, { SPR_LOOPING_RC_FLAT_CHAINED_NW_SE, SPR_STATION_BASE_B_NW_SE }, }; - const auto imageIds = is_csg_loaded() ? imageIdsWithCsg : imageIdsWithoutCsg; + const auto& imageIds = is_csg_loaded() ? imageIdsWithCsg : imageIdsWithoutCsg; PaintAddImageAsParentRotated( session, direction, imageIds[direction][0] | session->TrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6,