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) --- aircraft_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'aircraft_gui.c') diff --git a/aircraft_gui.c b/aircraft_gui.c index 7cf0cf903..f58184464 100644 --- a/aircraft_gui.c +++ b/aircraft_gui.c @@ -1014,7 +1014,7 @@ static void PlayerAircraftWndProc(Window *w, WindowEvent *e) tile = _last_built_aircraft_depot_tile; do { - if (IsTileOwner(tile, _local_player) && IsAircraftHangarTile(tile)) { + if (IsAircraftHangarTile(tile) && IsTileOwner(tile, _local_player)) { ShowAircraftDepotWindow(tile); ShowBuildAircraftWindow(tile); return; -- cgit v1.2.3-54-g00ecf