summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/openttd.c b/openttd.c
index 0818b03d4..e924a6ea2 100644
--- a/openttd.c
+++ b/openttd.c
@@ -1403,6 +1403,13 @@ bool AfterLoadGame(void)
}
}
+ if (CheckSavegameVersion(26)) {
+ Station *st;
+ FOR_ALL_STATIONS(st) {
+ st->last_vehicle_type = VEH_Invalid;
+ }
+ }
+
FOR_ALL_PLAYERS(p) p->avail_railtypes = GetPlayerRailtypes(p->index);
return true;