Mercurial > hg > openttd
changeset 15096:2189809c14cd draft
(svn r19722) -Fix: crash when using restart via rcon.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 25 Apr 2010 16:12:03 +0000 |
parents | 66d86ca758e3 |
children | 93be1a09c608 |
files | src/console_cmds.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -1006,7 +1006,7 @@ /* 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; }