1
0
Fork 0

(svn r27640) -Codechange: Remove another use of _saveload_mode in the loading code.

release/1.7
alberth 2016-09-04 12:48:28 +00:00
parent c6ac071619
commit 0bf3372882
1 changed files with 1 additions and 1 deletions

View File

@ -1097,7 +1097,7 @@ void SwitchToMode(SwitchMode new_mode)
SetDParamStr(0, GetSaveLoadErrorString()); SetDParamStr(0, GetSaveLoadErrorString());
ShowErrorMessage(STR_JUST_RAW_STRING, INVALID_STRING_ID, WL_ERROR); ShowErrorMessage(STR_JUST_RAW_STRING, INVALID_STRING_ID, WL_ERROR);
} else { } 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. */ /* Reset engine pool to simplify changing engine NewGRFs in scenario editor. */
EngineOverrideManager::ResetToCurrentNewGRFConfig(); EngineOverrideManager::ResetToCurrentNewGRFConfig();
} }