From 2ecbac15505036dbf85c29fdec5d879ecc2a30a0 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 7 Jan 2018 22:27:52 +0100 Subject: [PATCH] Fix #6972: Last development field is identical to progress field --- src/openrct2-ui/windows/Research.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openrct2-ui/windows/Research.cpp b/src/openrct2-ui/windows/Research.cpp index 2808ffa217..6d17d8d081 100644 --- a/src/openrct2-ui/windows/Research.cpp +++ b/src/openrct2-ui/windows/Research.cpp @@ -392,8 +392,9 @@ void window_research_development_page_paint(rct_window *w, rct_drawpixelinfo *dp rct_string_id lastDevelopmentFormat; if (gResearchLastItemSubject.rawValue != RESEARCHED_ITEMS_SEPARATOR) { + stringId = research_item_get_name(&gResearchNextItem); uint8 type = gResearchLastItemSubject.type; - lastDevelopmentFormat = type == RESEARCH_ENTRY_TYPE_RIDE ? STR_RESEARCH_RIDE_LABEL : STR_RESEARCH_SCENERY_LABEL; + lastDevelopmentFormat = (type == RESEARCH_ENTRY_TYPE_RIDE) ? STR_RESEARCH_RIDE_LABEL : STR_RESEARCH_SCENERY_LABEL; gfx_draw_string_left_wrapped(dpi, &stringId, x, y, 266, lastDevelopmentFormat, COLOUR_BLACK); }