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 /ship_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 'ship_gui.c')
-rw-r--r-- | ship_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ship_gui.c b/ship_gui.c index 375afe857..30a366539 100644 --- a/ship_gui.c +++ b/ship_gui.c @@ -996,7 +996,7 @@ static void PlayerShipsWndProc(Window *w, WindowEvent *e) tile = _last_built_ship_depot_tile; do { - if (IsTileOwner(tile, _local_player) && IsTileDepotType(tile, TRANSPORT_WATER)) { + if (IsTileDepotType(tile, TRANSPORT_WATER) && IsTileOwner(tile, _local_player)) { ShowShipDepotWindow(tile); ShowBuildShipWindow(tile); return; |