Station rating: Track last visited vehicle type separately per-cargo

This commit is contained in:
Jonathan G Rennison
2018-06-01 19:12:53 +01:00
parent 41c1a396ed
commit 777151c34d
8 changed files with 19 additions and 9 deletions

View File

@@ -1480,7 +1480,9 @@ bool AfterLoadGame()
if (IsSavegameVersionBefore(26)) {
Station *st;
FOR_ALL_STATIONS(st) {
st->last_vehicle_type = VEH_INVALID;
for (CargoID c = 0; c < NUM_CARGO; c++) {
st->goods[c].last_vehicle_type = VEH_INVALID;
}
}
}