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 /aircraft_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 'aircraft_gui.c')
-rw-r--r-- | aircraft_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |