Mercurial > hg > openttd
changeset 7131:107ab47b79c0 draft
(svn r10405) -Fix [FS#972]: do not try to determine the default railtype in the scenario editor.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 01 Jul 2007 17:11:24 +0000 |
parents | 207700baed13 |
children | ef1d8019de68 |
files | src/rail_gui.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -1231,7 +1231,7 @@ 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;