diff options
author | rubidium <rubidium@openttd.org> | 2009-01-03 13:20:32 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-03 13:20:32 +0000 |
commit | d428da5a356a3d9036b21b502bc90488270cdca9 (patch) | |
tree | e4a2ef1a719a0162a16a31302d400045fa683b38 /src/vehicle_gui.cpp | |
parent | 18b27692aa76ee620909a70f3152afb474cd6992 (diff) | |
download | openttd-d428da5a356a3d9036b21b502bc90488270cdca9.tar.xz |
(svn r14801) -Codechange: don't reference Vehicle::num_orders directly but through a method GetNumOrders() (PhilSophus)
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 5c0136390..6f5df3e62 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -1926,7 +1926,7 @@ struct VehicleViewWindow : Window { /* fall-through if aircraft. Does this even happen? */ default: - if (v->num_orders == 0) { + if (v->GetNumOrders() == 0) { str = STR_NO_ORDERS + _settings_client.gui.vehicle_speed; SetDParam(0, v->GetDisplaySpeed()); } else { |