summaryrefslogtreecommitdiff
path: root/src/vehicle.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/vehicle.cpp
parent1a26e293330e6e2622547692af7e96056e9207bc (diff)
downloadopenttd-26206fa11682313e8cbe2f19441c5dbdce63ef74.tar.xz
(svn r12862) -Codechange: reduce code duplication for VehicleType -> WindowClass lookup
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 092ef72e7..d8acda4ab 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -2546,7 +2546,7 @@ void Vehicle::BeginLoading()
VehiclePayment(this);
- InvalidateWindow(this->GetVehicleListWindowClass(), this->owner);
+ InvalidateWindow(GetWindowClassForVehicleType(this->type), this->owner);
InvalidateWindowWidget(WC_VEHICLE_VIEW, this->index, VVW_WIDGET_START_STOP_VEH);
InvalidateWindow(WC_VEHICLE_DETAILS, this->index);
InvalidateWindow(WC_STATION_VIEW, this->last_station_visited);