| 705 | |
| 706 | |
| 707 | void Load() const override |
| 708 | { |
| 709 | const std::vector<SaveLoad> slt = SlCompatTableHeader(_station_desc, _station_sl_compat); |
| 710 | |
| 711 | _old_num_flows = 0; |
| 712 | |
| 713 | int index; |
| 714 | while ((index = SlIterateArray()) != -1) { |
| 715 | bool waypoint = static_cast<StationFacilities>(SlReadByte()).Test(StationFacility::Waypoint); |
| 716 | |
| 717 | BaseStation *bst = waypoint ? (BaseStation *)new (StationID(index)) Waypoint() : new (StationID(index)) Station(); |
| 718 | SlObject(bst, slt); |
| 719 | } |
| 720 | } |
| 721 | |
| 722 | void FixPointers() const override |
| 723 | { |
nothing calls this directly
no test coverage detected