From 82dbf4b4675165629204eadd5ad6cc6657be1a11 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 1 Jul 2007 17:11:24 +0000 Subject: [PATCH] (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(-) diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index 1ee994b0eb..b2e2ec49aa 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;