summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc_gui.c b/misc_gui.c
index 788aac809..4811a8228 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -1267,7 +1267,7 @@ static void SaveLoadDlgWndProc(Window *w, WindowEvent *e)
strcpy(_file_to_saveload.name, name);
DeleteWindow(w);
} else if (_saveload_mode == SLD_LOAD_SCENARIO) {
- _switch_mode = SM_LOAD_SCENARIO;
+ _switch_mode = (_game_mode == GM_MENU) ? SM_LOAD : SM_LOAD_SCENARIO;
SetFiosType(file->type);
strcpy(_file_to_saveload.name, name);
DeleteWindow(w);