diff --git a/distribution/changelog.txt b/distribution/changelog.txt index afb734ff40..22a18316c8 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -18,6 +18,7 @@ - Fix: [#7756] Steam RCT2 path not correctly checked on macOS and Linux. - Fix: [#7765] Crash when opening ride list window on Windows Vista. - Fix: [#7773] Once research has been completed, player is still charged for research. +- Fix: [#7786] Crash when importing a track design. 0.2.0 (2018-06-10) ------------------------------------------------------------------------ diff --git a/src/openrct2-ui/windows/InstallTrack.cpp b/src/openrct2-ui/windows/InstallTrack.cpp index 762990ea14..27c1aa96e9 100644 --- a/src/openrct2-ui/windows/InstallTrack.cpp +++ b/src/openrct2-ui/windows/InstallTrack.cpp @@ -256,7 +256,8 @@ static void window_install_track_paint(rct_window *w, rct_drawpixelinfo *dpi) // 0x006D3CF1 -- 0x006d3d71 missing // Track design name & type - gfx_draw_string_left(dpi, STR_TRACK_DESIGN_NAME, &_trackName, COLOUR_BLACK, x-1, y); + auto trackName = _trackName.c_str(); + gfx_draw_string_left(dpi, STR_TRACK_DESIGN_NAME, &trackName, COLOUR_BLACK, x-1, y); y += LIST_ROW_HEIGHT; rct_ride_name rideName;