Fixes #3635 - Crash when inspecting paths (#3712)

This commit is contained in:
Hielke Morsink 2016-05-23 20:11:35 +02:00 committed by Ted John
parent 01f4ddd535
commit 15f3dcefd9
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -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
);