changeset 1977 | 4392ae3d8e31 |
parent 1926 | 68d60188a22f |
child 1980 | 9ea0c89fbb58 |
--- a/aircraft_cmd.c Thu Jun 23 18:32:41 2005 +0000 +++ b/aircraft_cmd.c Fri Jun 24 12:38:35 2005 +0000 @@ -844,7 +844,8 @@ // prevent going to 0,0 if airport is deleted. { - uint tile = st->airport_tile; + TileIndex tile = st->airport_tile; + if (tile == 0) tile = st->xy; // xy of destination x = TileX(tile) * 16;