summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
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);