diff options
author | hackykid <hackykid@openttd.org> | 2005-06-05 20:45:04 +0000 |
---|---|---|
committer | hackykid <hackykid@openttd.org> | 2005-06-05 20:45:04 +0000 |
commit | ea57dee837307d7a86a040e4121779f8e4bd1927 (patch) | |
tree | 756965eca8db87a17b89939114f957707d63d3b0 /train_gui.c | |
parent | eb173099e92b0004fb9fd23253d9500481079a52 (diff) | |
download | openttd-ea57dee837307d7a86a040e4121779f8e4bd1927.tar.xz |
(svn r2412) - Fix: [ 1214948 ] building vehicles without depot crashes game. (Chris Huebsch)
Diffstat (limited to 'train_gui.c')
-rw-r--r-- | train_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/train_gui.c b/train_gui.c index 3d7c09435..ae53cef37 100644 --- a/train_gui.c +++ b/train_gui.c @@ -1343,7 +1343,7 @@ static void PlayerTrainsWndProc(Window *w, WindowEvent *e) tile = _last_built_train_depot_tile; do { - if (IsTileOwner(tile, _local_player) && IsTileDepotType(tile, TRANSPORT_RAIL)) { + if (IsTileDepotType(tile, TRANSPORT_RAIL) && IsTileOwner(tile, _local_player)) { ShowTrainDepotWindow(tile); ShowBuildTrainWindow(tile); return; |