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

This commit is contained in:
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

@@ -585,6 +585,7 @@ CommandCost CmdStartStopVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1,
SetWindowWidgetDirty(WC_VEHICLE_VIEW, v->index, WID_VV_START_STOP);
SetWindowDirty(WC_VEHICLE_DEPOT, v->tile);
SetWindowClassesDirty(GetWindowClassForVehicleType(v->type));
InvalidateWindowData(WC_VEHICLE_VIEW, v->index);
}
return CommandCost();
}