From cce37698e85d5534866effafb448855ff16d7240 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 27 May 2018 13:26:21 +0100 Subject: [PATCH] Fix #7454: Rides list windows has weird strings... The ride list assumed the ride structure had 0 packing. Format the name by explicitly setting format arguments to the ride's name arguments. --- src/openrct2-ui/windows/RideList.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openrct2-ui/windows/RideList.cpp b/src/openrct2-ui/windows/RideList.cpp index c175d5a169..f609417426 100644 --- a/src/openrct2-ui/windows/RideList.cpp +++ b/src/openrct2-ui/windows/RideList.cpp @@ -603,7 +603,9 @@ static void window_ride_list_scrollpaint(rct_window *w, rct_drawpixelinfo *dpi, ride = get_ride(w->list_item_positions[i]); // Ride name - gfx_draw_string_left_clipped(dpi, format, &ride->name, COLOUR_BLACK, 0, y - 1, 159); + set_format_arg(0, rct_string_id, ride->name); + set_format_arg(2, uint32, ride->name_arguments); + gfx_draw_string_left_clipped(dpi, format, gCommonFormatArgs, COLOUR_BLACK, 0, y - 1, 159); // Ride information formatSecondary = 0;