src/vehicle_gui.cpp
changeset 9339 daaa2adbaf99
parent 9336 3f75a2c5e0d3
child 10079 99aba130db3c
--- a/src/vehicle_gui.cpp	Sun Apr 06 14:50:47 2008 +0000
+++ b/src/vehicle_gui.cpp	Sun Apr 06 15:09:45 2008 +0000
@@ -1969,7 +1969,7 @@
 					SetDParam(0, depot->town_index);
 					SetDParam(1, v->GetDisplaySpeed());
 				}
-				if (HasBit(v->current_order.flags, OF_HALT_IN_DEPOT) && !HasBit(v->current_order.flags, OF_PART_OF_ORDERS)) {
+				if (HasBit(v->current_order.GetDepotActionType(), OF_HALT_IN_DEPOT) && !HasBit(v->current_order.GetDepotOrderType(), OF_PART_OF_ORDERS)) {
 					str = _heading_for_depot_strings[v->type] + _patches.vehicle_speed;
 				} else {
 					str = _heading_for_depot_service_strings[v->type] + _patches.vehicle_speed;