From ea57dee837307d7a86a040e4121779f8e4bd1927 Mon Sep 17 00:00:00 2001 From: hackykid Date: Sun, 5 Jun 2005 20:45:04 +0000 Subject: (svn r2412) - Fix: [ 1214948 ] building vehicles without depot crashes game. (Chris Huebsch) --- ship_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ship_gui.c') 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; -- cgit v1.2.3-70-g09d2