summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 23c2b81ce..1b690e2a2 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -2560,6 +2560,13 @@ bool AfterLoadGame()
}
}
+ if (CheckSavegameVersion(103)) {
+ /* signs with invalid owner left from older savegames */
+ Sign *si;
+ FOR_ALL_SIGNS(si) {
+ if (si->owner != OWNER_NONE && !IsValidPlayerID(si->owner)) si->owner = OWNER_NONE;
+ }
+ }
GamelogPrintDebug(1);