1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Fix #7786: Crash when importing a track design (#7790)

This commit is contained in:
Ted John
2018-07-18 21:19:25 +01:00
committed by GitHub
parent 1a27fbb794
commit 3d85ec4ea1
2 changed files with 3 additions and 1 deletions

View File

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

View File

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