summaryrefslogtreecommitdiff
path: root/src/saveload/afterload.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/saveload/afterload.cpp')
-rw-r--r--src/saveload/afterload.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index 7d1e70212..c617348d7 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -3125,6 +3125,14 @@ bool AfterLoadGame()
}
}
+ /* Make sure all industries exclusive supplier/consumer set correctly. */
+ if (IsSavegameVersionBefore(SLV_GS_INDUSTRY_CONTROL)) {
+ for (Industry *i : Industry::Iterate()) {
+ i->exclusive_supplier = INVALID_OWNER;
+ i->exclusive_consumer = INVALID_OWNER;
+ }
+ }
+
/* Compute station catchment areas. This is needed here in case UpdateStationAcceptance is called below. */
Station::RecomputeCatchmentForAll();