# HG changeset patch # User rubidium # Date 1183309884 0 # Node ID b7fe92b212923a26094ca39ebfb7b9c028bd5846 # Parent 91b21768f307adafa30efddcceb3fd145dcf8b38 (svn r10405) -Fix [FS#972]: do not try to determine the default railtype in the scenario editor. diff -r 91b21768f307 -r b7fe92b21292 src/rail_gui.cpp --- a/src/rail_gui.cpp Sun Jul 01 12:25:08 2007 +0000 +++ b/src/rail_gui.cpp Sun Jul 01 17:11:24 2007 +0000 @@ -1231,7 +1231,7 @@ 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;