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

pull/155/head
rubidium 17 years ago
parent 7ce52ca8b7
commit b6b78a3f21

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

Loading…
Cancel
Save