* Make a backup of a train into a train list. * @param list to make the backup in * @param t the train to make the backup of */
| 873 | * @param t the train to make the backup of |
| 874 | */ |
| 875 | static void MakeTrainBackup(TrainList &list, Train *t) |
| 876 | { |
| 877 | for (; t != nullptr; t = t->Next()) list.push_back(t); |
| 878 | } |
| 879 | |
| 880 | /** |
| 881 | * Restore the train from the backup list. |
no test coverage detected