diff --git a/src/order_gui.cpp b/src/order_gui.cpp index 9ef6f7f30f..21b711fe75 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -464,7 +464,7 @@ static void OrdersWndProc(Window *w, WindowEvent *e) switch (ord->type) { case OT_GOTO_STATION: xy = GetStation(ord->dest)->xy ; break; - case OT_GOTO_DEPOT: xy = GetDepot(ord->dest)->xy; break; + case OT_GOTO_DEPOT: xy = (v->type == VEH_Aircraft) ? GetStation(ord->dest)->xy : GetDepot(ord->dest)->xy; break; case OT_GOTO_WAYPOINT: xy = GetWaypoint(ord->dest)->xy; break; default: xy = 0; break; }