From 26206fa11682313e8cbe2f19441c5dbdce63ef74 Mon Sep 17 00:00:00 2001 From: smatz Date: Thu, 24 Apr 2008 09:55:20 +0000 Subject: (svn r12862) -Codechange: reduce code duplication for VehicleType -> WindowClass lookup --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vehicle.cpp') 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); -- cgit v1.2.3-54-g00ecf