mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #4891: Crash at loading save file
Caused by `_listItems` getting `free`d (and set to `NULL`) before it was
used.
Regression introduced in 11a2b98e58
.
This commit is contained in:
parent
d1a97cc021
commit
9e321b69ee
|
@ -721,9 +721,9 @@ static void window_loadsave_select(rct_window *w, const char *path)
|
|||
case (LOADSAVETYPE_LOAD | LOADSAVETYPE_GAME) :
|
||||
save_path(&gConfigGeneral.last_save_game_directory, path);
|
||||
safe_strcpy(gScenarioSavePath, path, MAX_PATH);
|
||||
window_loadsave_invoke_callback(MODAL_RESULT_OK, path);
|
||||
window_close(w);
|
||||
gfx_invalidate_screen();
|
||||
window_loadsave_invoke_callback(MODAL_RESULT_OK, path);
|
||||
break;
|
||||
case (LOADSAVETYPE_SAVE | LOADSAVETYPE_GAME) :
|
||||
save_path(&gConfigGeneral.last_save_game_directory, path);
|
||||
|
|
Loading…
Reference in New Issue