src/station_cmd.cpp
changeset 6959 0066ab0d9b93
parent 6949 72d11a1e1e60
child 6979 d194d25020e7
equal deleted inserted replaced
6958:dc65e6e53c24 6959:0066ab0d9b93
  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 */