diff options
author | smatz <smatz@openttd.org> | 2008-04-24 09:55:20 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-04-24 09:55:20 +0000 |
commit | 26206fa11682313e8cbe2f19441c5dbdce63ef74 (patch) | |
tree | 425b0f3d08a6a6ba4e8c57af527383861642e162 /src/order_cmd.cpp | |
parent | 1a26e293330e6e2622547692af7e96056e9207bc (diff) | |
download | openttd-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.cpp | 2 |
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; } |