diff options
author | rubidium <rubidium@openttd.org> | 2007-07-01 17:11:24 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-01 17:11:24 +0000 |
commit | b6b78a3f217d0986b9a23d61bdb04c916f945a91 (patch) | |
tree | da1d10a3bba3bd99126288d65ad2ebea64a729da | |
parent | 7ce52ca8b7cd711bbe44a3de65ed092df36250bc (diff) | |
download | openttd-b6b78a3f217d0986b9a23d61bdb04c916f945a91.tar.xz |
(svn r10405) -Fix [FS#972]: do not try to determine the default railtype in the scenario editor.
-rw-r--r-- | src/rail_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index 1ee994b0e..b2e2ec49a 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -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; |