diff options
author | alberth <alberth@openttd.org> | 2016-09-04 12:58:04 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2016-09-04 12:58:04 +0000 |
commit | 6f201ce4a8db0143ba0664aabdd04dc733adc243 (patch) | |
tree | a368495e00682bf58a0270ab1fe63d79e934a530 /src/openttd.cpp | |
parent | 597380e099688652e31fd1f406b53dee6b65da90 (diff) | |
download | openttd-6f201ce4a8db0143ba0664aabdd04dc733adc243.tar.xz |
(svn r27651) -Codechange: Introduce methods for setting the name and title of _file_to_saveload.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 4464e8016..f00ce74c3 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -618,7 +618,7 @@ int openttd_main(int argc, char *argv[]) case 'e': _switch_mode = (_switch_mode == SM_LOAD_GAME || _switch_mode == SM_LOAD_SCENARIO ? SM_LOAD_SCENARIO : SM_EDITOR); break; case 'g': if (mgo.opt != NULL) { - strecpy(_file_to_saveload.name, mgo.opt, lastof(_file_to_saveload.name)); + _file_to_saveload.SetName(mgo.opt); bool is_scenario = _switch_mode == SM_EDITOR || _switch_mode == SM_LOAD_SCENARIO; _switch_mode = is_scenario ? SM_LOAD_SCENARIO : SM_LOAD_GAME; _file_to_saveload.SetMode(FOP_LOAD, is_scenario ? FT_SCENARIO : FT_SAVEGAME, DFT_GAME_FILE); |