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 | abd3b8e0d713c01a27e0a4b448b1dd0d8a352311 (patch) | |
tree | e4a2ef1a719a0162a16a31302d400045fa683b38 /src/vehicle_gui.cpp | |
parent | f08fe262af89f4330bfaf961ee37f3d45fbebf13 (diff) | |
download | openttd-abd3b8e0d713c01a27e0a4b448b1dd0d8a352311.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 { |