diff options
author | alberth <alberth@openttd.org> | 2016-09-04 12:44:42 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2016-09-04 12:44:42 +0000 |
commit | a52864ef27729b3d8458d003a999de4655d59341 (patch) | |
tree | b0f132e7fa0d1614123ca9a11b6388e1fbe3990d /src/console_cmds.cpp | |
parent | 9156d7bf346b77c40acc156d5c1de002d76790c9 (diff) | |
download | openttd-a52864ef27729b3d8458d003a999de4655d59341.tar.xz |
(svn r27633) -Codechange: Extract _saveload_mode use from BuildFileList
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r-- | src/console_cmds.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index 8d9e04113..8df5b15cd 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -324,7 +324,7 @@ DEF_CONSOLE_CMD(ConSaveConfig) static const FiosItem *GetFiosItem(const char *file) { _saveload_mode = SLD_LOAD_GAME; - BuildFileList(); + BuildFileList(_saveload_mode); for (const FiosItem *item = _fios_items.Begin(); item != _fios_items.End(); item++) { if (strcmp(file, item->name) == 0) return item; @@ -415,7 +415,7 @@ DEF_CONSOLE_CMD(ConListFiles) return true; } - BuildFileList(); + BuildFileList(_saveload_mode); for (uint i = 0; i < _fios_items.Length(); i++) { IConsolePrintF(CC_DEFAULT, "%d) %s", i, _fios_items[i].title); |