From 15f3dcefd97c6cf2cc65d6e38ca32bfbe73517ef Mon Sep 17 00:00:00 2001 From: Hielke Morsink Date: Mon, 23 May 2016 20:11:35 +0200 Subject: [PATCH] Fixes #3635 - Crash when inspecting paths (#3712) --- distribution/changelog.txt | 3 ++- src/windows/tile_inspector.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 5938079a84..3e4e314c00 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -14,7 +14,8 @@ - Fix: [#3361] Missing Twister coaster piece. - Fix: [#3418] Launched freefall restraints are drawn incorrectly when up (original bug). - Fix: [#3451] Renaming staff is a guest command. -- Fix: [#3210] Scenery window scrolls too far +- Fix: [#3210] Scenery window scrolls too far. +- Fix: [#3635] Inspecting sidewalk path crashes game. 0.0.4-beta (2016-04-15) ------------------------------------------------------------------------ diff --git a/src/windows/tile_inspector.c b/src/windows/tile_inspector.c index 47c1bb3422..05b29683a2 100644 --- a/src/windows/tile_inspector.c +++ b/src/windows/tile_inspector.c @@ -610,7 +610,7 @@ static void window_tile_inspector_scrollpaint(rct_window *w, rct_drawpixelinfo * } else { sprintf( buffer, "Path (%s)%s%s", - language_get_string(get_footpath_item_entry(pathType)->name), // Path name + language_get_string(get_footpath_entry(pathType)->string_idx), // Path name pathHasScenery ? " with " : "", // Adds " with " when there is something on the path pathHasScenery ? language_get_string(get_footpath_item_entry(pathAdditionType)->name) : "" // Path addition name );