Fix #7197: Invalidate depot buttons when necessary. (#7212)

This commit is contained in:
PeterN
2019-02-10 08:43:54 +00:00
committed by GitHub
parent 6e21190858
commit d242875d27
3 changed files with 8 additions and 1 deletions

View File

@@ -1490,6 +1490,8 @@ void VehicleEnterDepot(Vehicle *v)
TriggerVehicle(v, VEHICLE_TRIGGER_DEPOT);
v->MarkDirty();
InvalidateWindowData(WC_VEHICLE_VIEW, v->index);
if (v->current_order.IsType(OT_GOTO_DEPOT)) {
SetWindowDirty(WC_VEHICLE_VIEW, v->index);