diff options
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/afterload.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index 7cb9f0ff0..b800fe087 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -483,6 +483,10 @@ bool AfterLoadGame() TileIndex map_size = MapSize(); + extern TileIndex _cur_tileloop_tile; // From landscape.cpp. + /* The LFSR used in RunTileLoop iteration cannot have a zeroed state, make it non-zeroed. */ + if (_cur_tileloop_tile == 0) _cur_tileloop_tile = 1; + if (IsSavegameVersionBefore(98)) GamelogOldver(); GamelogTestRevision(); |