summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx22 <glx22@users.noreply.github.com>2020-05-12 15:22:58 +0200
committerGitHub <noreply@github.com>2020-05-12 15:22:58 +0200
commitcca613e3b885d94b54bf9bcb3f2bd7ee85381fac (patch)
tree826fb075b3c129229a9eeb093afe29cc5bfda6e4 /src
parentd15c7dbdeb14f90988caeab7fa58b44876c806e2 (diff)
downloadopenttd-cca613e3b885d94b54bf9bcb3f2bd7ee85381fac.tar.xz
Fix #8142, 5aa6351: Buoy owner and tile owner can be different (#8143)
Diffstat (limited to 'src')
-rw-r--r--src/saveload/afterload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index 14d5e5434..fa95303f6 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -899,7 +899,7 @@ bool AfterLoadGame()
BaseStation *bst = BaseStation::GetByTile(t);
/* Sanity check */
- if (bst->owner != GetTileOwner(t)) SlErrorCorrupt("Wrong owner for station tile");
+ if (!IsBuoy(t) && bst->owner != GetTileOwner(t)) SlErrorCorrupt("Wrong owner for station tile");
/* Set up station spread */
bst->rect.BeforeAddTile(t, StationRect::ADD_FORCE);