summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/console_cmds.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index 7a55d01e0..df57479e0 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -1006,7 +1006,7 @@ DEF_CONSOLE_CMD(ConRestart)
/* Don't copy the _newgame pointers to the real pointers, so call SwitchToMode directly */
_settings_game.game_creation.map_x = MapLogX();
_settings_game.game_creation.map_y = FindFirstBit(MapSizeY());
- SwitchToMode(SM_RESTARTGAME);
+ _switch_mode = SM_RESTARTGAME;
return true;
}