vehicle_gui.c
changeset 4389 18d6ccfb5335
parent 4354 10f4ce894eb1
child 4408 db2afc41002a
equal deleted inserted replaced
4388:c8a66d26e146 4389:18d6ccfb5335
   140 						(type != VEH_Train && v->subtype <= subtype)
   140 						(type != VEH_Train && v->subtype <= subtype)
   141 					)) {
   141 					)) {
   142 				const Order *order;
   142 				const Order *order;
   143 
   143 
   144 				FOR_VEHICLE_ORDERS(v, order) {
   144 				FOR_VEHICLE_ORDERS(v, order) {
   145 					if (order->type == OT_GOTO_STATION && order->station == station) {
   145 					if (order->type == OT_GOTO_STATION && order->dest.station == station) {
   146 						sort_list[n++] = v;
   146 						sort_list[n++] = v;
   147 						break;
   147 						break;
   148 					}
   148 					}
   149 				}
   149 				}
   150 			}
   150 			}