equal
deleted
inserted
replaced
2818 |
2818 |
2819 |
2819 |
2820 static void SaveLoad_STNS(Station *st) |
2820 static void SaveLoad_STNS(Station *st) |
2821 { |
2821 { |
2822 SlObject(st, _station_desc); |
2822 SlObject(st, _station_desc); |
2823 for (CargoID i = 0; i < NUM_CARGO; i++) { |
2823 |
|
2824 uint num_cargo = CheckSavegameVersion(55) ? 12 : NUM_CARGO; |
|
2825 for (CargoID i = 0; i < num_cargo; i++) { |
2824 SlObject(&st->goods[i], _goods_desc); |
2826 SlObject(&st->goods[i], _goods_desc); |
2825 } |
2827 } |
2826 |
2828 |
2827 if (st->num_specs != 0) { |
2829 if (st->num_specs != 0) { |
2828 /* Allocate speclist memory when loading a game */ |
2830 /* Allocate speclist memory when loading a game */ |