summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-03 13:20:32 +0000
committerrubidium <rubidium@openttd.org>2009-01-03 13:20:32 +0000
commitd428da5a356a3d9036b21b502bc90488270cdca9 (patch)
treee4a2ef1a719a0162a16a31302d400045fa683b38 /src/vehicle_gui.cpp
parent18b27692aa76ee620909a70f3152afb474cd6992 (diff)
downloadopenttd-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.cpp2
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 {