(svn r8137) -Fix (FS#551, r4259, r4320): roadstop->num_vehicles was wrong for savegames with version 24 or lower and do not calculate roadstop->num_vehicles when reading the roadstops as the vehicles might not be loaded at that moment.

This commit is contained in:
rubidium
2007-01-14 23:09:25 +00:00
parent cd74706c54
commit 48611e1e20
2 changed files with 5 additions and 5 deletions

View File

@@ -1553,6 +1553,11 @@ bool AfterLoadGame(void)
v->u.road.slot_age = 0;
}
}
} else {
Vehicle *v;
FOR_ALL_VEHICLES(v) {
if (v->type == VEH_Road && v->u.road.slot != NULL) v->u.road.slot->num_vehicles++;
}
}
if (CheckSavegameVersion(26)) {