1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Fix #5849: Missing object window cannot be closed with KB shortcut (#5929)

This commit is contained in:
Richard Jenkins
2017-07-17 22:29:28 +01:00
committed by Ted John
parent 7b8248cca7
commit 2cfe2e323c
2 changed files with 2 additions and 2 deletions

View File

@@ -754,7 +754,7 @@ static void window_loadsave_select(rct_window *w, const char *path)
save_path(&gConfigGeneral.last_save_game_directory, pathBuffer);
safe_strcpy(gScenarioSavePath, pathBuffer, MAX_PATH);
window_loadsave_invoke_callback(MODAL_RESULT_OK, pathBuffer);
window_close(w);
window_close_by_class(WC_LOADSAVE);
gfx_invalidate_screen();
break;
case (LOADSAVETYPE_SAVE | LOADSAVETYPE_GAME) :

View File

@@ -187,7 +187,7 @@ rct_window * window_object_load_error_open(utf8 * path, size_t numMissingObjects
WH,
&window_object_load_error_events,
WC_OBJECT_LOAD_ERROR,
WF_STICK_TO_FRONT
0
);
window->widgets = window_object_load_error_widgets;