summaryrefslogtreecommitdiff
path: root/src/saveload/signs_sl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/saveload/signs_sl.cpp')
-rw-r--r--src/saveload/signs_sl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/saveload/signs_sl.cpp b/src/saveload/signs_sl.cpp
index 918f9e213..d5ea26d65 100644
--- a/src/saveload/signs_sl.cpp
+++ b/src/saveload/signs_sl.cpp
@@ -11,6 +11,7 @@
#include "../stdafx.h"
#include "../signs_base.h"
+#include "../fios.h"
#include "saveload.h"
@@ -55,6 +56,11 @@ static void Load_SIGN()
if (IsSavegameVersionBefore(6, 1) || (IsSavegameVersionBefore(83) && si->owner == INVALID_OWNER)) {
si->owner = OWNER_NONE;
}
+
+ /* Signs placed in scenario editor shall now be OWNER_DEITY */
+ if (IsSavegameVersionBefore(171) && si->owner == OWNER_NONE && _saveload_mode == SLD_LOAD_SCENARIO) {
+ si->owner = OWNER_DEITY;
+ }
}
}