From 76611d054a04080e024f591791f728a05c6f4b53 Mon Sep 17 00:00:00 2001 From: ZedThree Date: Wed, 7 May 2014 23:11:23 +0200 Subject: [PATCH] Fix bug in open_load_game_dialog() Should return the result of osinterface_open_common_file_dialog() --- src/game.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game.c b/src/game.c index a68cd91245..f46623127f 100644 --- a/src/game.c +++ b/src/game.c @@ -1159,13 +1159,15 @@ static int open_landscape_file_dialog() */ static int open_load_game_dialog() { + int result; format_string(0x0141ED68, STR_LOAD_GAME_DIALOG_TITLE, 0); strcpy(0x0141EF68, RCT2_ADDRESS_SAVED_GAMES_PATH); format_string(0x0141EE68, STR_RCT2_SAVED_GAME, 0); pause_sounds(); - osinterface_open_common_file_dialog(1, 0x0141ED68, 0x0141EF68, "*.SV6", 0x0141EE68); + result = osinterface_open_common_file_dialog(1, 0x0141ED68, 0x0141EF68, "*.SV6", 0x0141EE68); unpause_sounds(); // window_proc + return result; } /**