From 82dbf4b4675165629204eadd5ad6cc6657be1a11 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 1 Jul 2007 17:11:24 +0000 Subject: (svn r10405) -Fix [FS#972]: do not try to determine the default railtype in the scenario editor. --- src/rail_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2