(svn r10405) -Fix [FS#972]: do not try to determine the default railtype in the scenario editor.

This commit is contained in:
rubidium 2007-07-01 17:11:24 +00:00
parent fe2e9ea795
commit 82dbf4b467
1 changed files with 1 additions and 1 deletions

View File

@ -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;