1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-23 14:39:08 +00:00

(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

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;