summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2016-09-04 12:46:29 +0000
committeralberth <alberth@openttd.org>2016-09-04 12:46:29 +0000
commit3b8ede5ebe74bafba528f0bf40942c1367cbcaee (patch)
treea3f12604b77eef8452f7772fd04b0853d978b4cf /src
parent087ed1e999e900d695f5de11b340406890baa3a7 (diff)
downloadopenttd-3b8ede5ebe74bafba528f0bf40942c1367cbcaee.tar.xz
(svn r27637) -Codechange: Don't use _saveload_mode for scenario loading detection.
Diffstat (limited to 'src')
-rw-r--r--src/saveload/signs_sl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/signs_sl.cpp b/src/saveload/signs_sl.cpp
index d5bacd509..077d34501 100644
--- a/src/saveload/signs_sl.cpp
+++ b/src/saveload/signs_sl.cpp
@@ -60,7 +60,7 @@ static void Load_SIGN()
}
/* Signs placed in scenario editor shall now be OWNER_DEITY */
- if (IsSavegameVersionBefore(171) && si->owner == OWNER_NONE && _saveload_mode == SLD_LOAD_SCENARIO) {
+ if (IsSavegameVersionBefore(171) && si->owner == OWNER_NONE && _file_to_saveload.filetype == FT_SCENARIO) {
si->owner = OWNER_DEITY;
}
}