mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r10405) -Fix [FS#972]: do not try to determine the default railtype in the scenario editor.
This commit is contained in:
parent
fe2e9ea795
commit
82dbf4b467
|
@ -1231,7 +1231,7 @@ void ReinitGuiAfterToggleElrail(bool disable)
|
|||
|
||||
void SetDefaultRailGui()
|
||||
{
|
||||
if (_local_player == PLAYER_SPECTATOR) return;
|
||||
if (_local_player == PLAYER_SPECTATOR || !IsValidPlayer(_local_player)) return;
|
||||
|
||||
extern RailType _last_built_railtype;
|
||||
RailType rt = (RailType)_patches.default_rail_type;
|
||||
|
|
Loading…
Reference in New Issue