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 | 82dbf4b4675165629204eadd5ad6cc6657be1a11 (patch) | |
tree | da1d10a3bba3bd99126288d65ad2ebea64a729da /src | |
parent | fe2e9ea7956b5885b307d69c858723987dfe1289 (diff) | |
download | openttd-82dbf4b4675165629204eadd5ad6cc6657be1a11.tar.xz |
(svn r10405) -Fix [FS#972]: do not try to determine the default railtype in the scenario editor.
Diffstat (limited to 'src')
-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; |