diff options
author | rubidium <rubidium@openttd.org> | 2010-04-25 16:12:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-04-25 16:12:03 +0000 |
commit | 4868fb988ff7373ac0b436511464434a310273fd (patch) | |
tree | de1bec25cb519db5be21d5c99f6038fae907f3b5 /src | |
parent | a4eea26aa42d2f950aa0325444cd6bdd425884f5 (diff) | |
download | openttd-4868fb988ff7373ac0b436511464434a310273fd.tar.xz |
(svn r19722) -Fix: crash when using restart via rcon.
Diffstat (limited to 'src')
-rw-r--r-- | src/console_cmds.cpp | 2 |
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; } |