mirror of https://github.com/OpenTTD/OpenTTD
(svn r19722) -Fix: crash when using restart via rcon.
parent
a4eea26aa4
commit
4868fb988f
|
@ -1006,7 +1006,7 @@ DEF_CONSOLE_CMD(ConRestart)
|
||||||
/* Don't copy the _newgame pointers to the real pointers, so call SwitchToMode directly */
|
/* 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_x = MapLogX();
|
||||||
_settings_game.game_creation.map_y = FindFirstBit(MapSizeY());
|
_settings_game.game_creation.map_y = FindFirstBit(MapSizeY());
|
||||||
SwitchToMode(SM_RESTARTGAME);
|
_switch_mode = SM_RESTARTGAME;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue