Use reference and not copy (#15303)

This commit is contained in:
ζeh Matt 2021-08-27 15:31:40 -07:00 committed by GitHub
parent 85d3dc2a84
commit 97ded2d7c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,