diff options
Diffstat (limited to 'src/saveload/afterload.cpp')
-rw-r--r-- | src/saveload/afterload.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index 6e95f5a90..4bd466e1e 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -2392,6 +2392,17 @@ bool AfterLoadGame() } } + if (IsSavegameVersionBefore(156)) { + /* The train's pathfinder lost flag got moved. */ + Train *t; + FOR_ALL_TRAINS(t) { + if (!HasBit(t->flags, 5)) continue; + + ClrBit(t->flags, 5); + SetBit(t->vehicle_flags, VF_PATHFINDER_LOST); + } + } + /* Road stops is 'only' updating some caches */ AfterLoadRoadStops(); AfterLoadLabelMaps(); |