summaryrefslogtreecommitdiff
path: root/src/saveload/afterload.cpp
diff options
context:
space:
mode:
authorSamuXarick <43006711+SamuXarick@users.noreply.github.com>2021-10-03 11:54:19 +0100
committerGitHub <noreply@github.com>2021-10-03 12:54:19 +0200
commite404d16929991d1eddd9d37b859d3813be7e18ed (patch)
tree0c6de857141d311dd827db95a9fbd39dee501128 /src/saveload/afterload.cpp
parente4ad6329891c9235336649ef4412b2ce0a073af8 (diff)
downloadopenttd-e404d16929991d1eddd9d37b859d3813be7e18ed.tar.xz
Fix #9591: Update station docking tiles upon placing a water object on a docking tile (#9594)
Diffstat (limited to 'src/saveload/afterload.cpp')
-rw-r--r--src/saveload/afterload.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index 02a221bb6..6a42ea81c 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -3106,8 +3106,8 @@ bool AfterLoadGame()
}
}
- if (IsSavegameVersionBefore(SLV_DOCK_DOCKINGTILES)) {
- /* All tiles around docks may be docking tiles. */
+ if (IsSavegameVersionBefore(SLV_REPAIR_OBJECT_DOCKING_TILES)) {
+ /* Placing objects on docking tiles was not updating adjacent station's docking tiles. */
for (Station *st : Station::Iterate()) {
if (st->ship_station.tile != INVALID_TILE) UpdateStationDockingTiles(st);
}