diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index facff0f528..d24018228a 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -244,6 +244,9 @@ void Train::ConsistChanged(ConsistChangeFlags allowed_changes) InvalidateWindowData(WC_VEHICLE_REFIT, this->index, VIWD_CONSIST_CHANGED); InvalidateWindowData(WC_VEHICLE_ORDERS, this->index, VIWD_CONSIST_CHANGED); InvalidateNewGRFInspectWindow(GSF_TRAINS, this->index); + + /* If the consist is changed while in a depot, the vehicle view window must be invalidated to update the availability of refitting. */ + InvalidateWindowData(WC_VEHICLE_VIEW, this->index, VIWD_CONSIST_CHANGED); } }