summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2016-09-04 12:48:28 +0000
committeralberth <alberth@openttd.org>2016-09-04 12:48:28 +0000
commit0bf3372882f5c5de67edc68da6bed2ddc582d760 (patch)
tree91c0e213dd6c4b9fab7de3ab1425c830697e43be
parentc6ac071619ca22c46593e2a0dc6b449c8375ef66 (diff)
downloadopenttd-0bf3372882f5c5de67edc68da6bed2ddc582d760.tar.xz
(svn r27640) -Codechange: Remove another use of _saveload_mode in the loading code.
-rw-r--r--src/openttd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index b5f654df6..594b6fa37 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -1097,7 +1097,7 @@ void SwitchToMode(SwitchMode new_mode)
SetDParamStr(0, GetSaveLoadErrorString());
ShowErrorMessage(STR_JUST_RAW_STRING, INVALID_STRING_ID, WL_ERROR);
} else {
- if (_saveload_mode == SLD_LOAD_SCENARIO) {
+ if (_file_to_saveload.filetype == FT_SCENARIO) {
/* Reset engine pool to simplify changing engine NewGRFs in scenario editor. */
EngineOverrideManager::ResetToCurrentNewGRFConfig();
}