const auto&

This commit is contained in:
Gymnasiast 2021-09-19 23:01:47 +02:00
parent 1e17304e76
commit 11607f525d
No known key found for this signature in database
GPG Key ID: DBFFF47AB2CA3EDD
1 changed files with 1 additions and 1 deletions

View File

@ -1947,7 +1947,7 @@ static void window_tile_inspector_paint(rct_window* w, rct_drawpixelinfo* dpi)
}
// Ride type. Individual pieces may be of a different ride type from the ride it belongs to.
auto rtd = GetRideTypeDescriptor(trackElement->GetRideType());
const auto& rtd = GetRideTypeDescriptor(trackElement->GetRideType());
ft = Formatter();
ft.Add<rct_string_id>(rtd.Naming.Name);
DrawTextBasic(