summaryrefslogtreecommitdiff
path: root/src/order_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-04-24 09:55:20 +0000
committersmatz <smatz@openttd.org>2008-04-24 09:55:20 +0000
commit26206fa11682313e8cbe2f19441c5dbdce63ef74 (patch)
tree425b0f3d08a6a6ba4e8c57af527383861642e162 /src/order_cmd.cpp
parent1a26e293330e6e2622547692af7e96056e9207bc (diff)
downloadopenttd-26206fa11682313e8cbe2f19441c5dbdce63ef74.tar.xz
(svn r12862) -Codechange: reduce code duplication for VehicleType -> WindowClass lookup
Diffstat (limited to 'src/order_cmd.cpp')
-rw-r--r--src/order_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp
index 60ec9311d..59fb9a01f 100644
--- a/src/order_cmd.cpp
+++ b/src/order_cmd.cpp
@@ -1663,7 +1663,7 @@ bool ProcessOrders(Vehicle *v)
case VEH_AIRCRAFT:
case VEH_SHIP:
- InvalidateWindowClasses(v->GetVehicleListWindowClass());
+ InvalidateWindowClasses(GetWindowClassForVehicleType(v->type));
break;
}