summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/saveload/afterload.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index b81d446e4..14d5e5434 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -898,6 +898,9 @@ bool AfterLoadGame()
case MP_STATION: {
BaseStation *bst = BaseStation::GetByTile(t);
+ /* Sanity check */
+ if (bst->owner != GetTileOwner(t)) SlErrorCorrupt("Wrong owner for station tile");
+
/* Set up station spread */
bst->rect.BeforeAddTile(t, StationRect::ADD_FORCE);