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
commit9fc355fca5d80a7d38d4a35dd6ec00e6adb1391a (patch)
tree425b0f3d08a6a6ba4e8c57af527383861642e162 /src/vehicle.cpp
parent48eda2b6ef4ac2b29bb007218b162207658d70a5 (diff)
downloadopenttd-9fc355fca5d80a7d38d4a35dd6ec00e6adb1391a.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);