From 4868fb988ff7373ac0b436511464434a310273fd Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 25 Apr 2010 16:12:03 +0000 Subject: (svn r19722) -Fix: crash when using restart via rcon. --- src/console_cmds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/console_cmds.cpp') 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; } -- cgit v1.2.3-70-g09d2