| 646 | } |
| 647 | |
| 648 | static OpenLoco::Vehicles::IncomeStats importIncomeStats(const S5::IncomeStats& src) |
| 649 | { |
| 650 | OpenLoco::Vehicles::IncomeStats dst{}; |
| 651 | dst.day = src.day; |
| 652 | for (size_t i = 0; i < std::size(src.cargoTypes); i++) |
| 653 | { |
| 654 | dst.cargoTypes[i] = src.cargoTypes[i]; |
| 655 | dst.cargoQtys[i] = src.cargoQtys[i]; |
| 656 | dst.cargoDistances[i] = src.cargoDistances[i]; |
| 657 | dst.cargoAges[i] = src.cargoAges[i]; |
| 658 | dst.cargoProfits[i] = src.cargoProfits[i]; |
| 659 | } |
| 660 | return dst; |
| 661 | } |
| 662 | |
| 663 | static void importVehicle1(OpenLoco::Vehicles::Vehicle1& dst, const S5::Vehicle1& src) |
| 664 | { |