summaryrefslogtreecommitdiff
path: root/order_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'order_gui.c')
-rw-r--r--order_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/order_gui.c b/order_gui.c
index 5c99bb557..0c9692929 100644
--- a/order_gui.c
+++ b/order_gui.c
@@ -271,9 +271,9 @@ static bool HandleOrderVehClick(Vehicle *v, Vehicle *u, Window *w)
if (u->type != v->type)
return false;
- if (u->type == VEH_Train && u->subtype != 0) {
+ if (u->type == VEH_Train && u->subtype != TS_Front_Engine) {
u = GetFirstVehicleInChain(u);
- if (u->subtype != 0)
+ if (u->subtype != TS_Front_Engine)
return false;
}