diff options
author | alberth <alberth@openttd.org> | 2016-09-04 12:50:22 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2016-09-04 12:50:22 +0000 |
commit | bc08fe7c5f449ff12bd7c76553781f59a325507f (patch) | |
tree | 324fc77e71364d0ad84dd6009c0ff7fb709ac5fb /src/console_cmds.cpp | |
parent | 0bf3372882f5c5de67edc68da6bed2ddc582d760 (diff) | |
download | openttd-bc08fe7c5f449ff12bd7c76553781f59a325507f.tar.xz |
(svn r27641) -Codechange: Fold the _fios_items file list vector into its own class.
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r-- | src/console_cmds.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index 67f3f6098..7db151d77 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -378,7 +378,7 @@ DEF_CONSOLE_CMD(ConLoad) IConsolePrintF(CC_ERROR, "%s: No such file or directory.", file); } - FiosFreeSavegameList(); + _fios_items.Clear(); return true; } @@ -402,7 +402,7 @@ DEF_CONSOLE_CMD(ConRemove) IConsolePrintF(CC_ERROR, "%s: No such file or directory.", file); } - FiosFreeSavegameList(); + _fios_items.Clear(); return true; } @@ -421,7 +421,7 @@ DEF_CONSOLE_CMD(ConListFiles) IConsolePrintF(CC_DEFAULT, "%d) %s", i, _fios_items[i].title); } - FiosFreeSavegameList(); + _fios_items.Clear(); return true; } @@ -448,7 +448,7 @@ DEF_CONSOLE_CMD(ConChangeDirectory) IConsolePrintF(CC_ERROR, "%s: No such file or directory.", file); } - FiosFreeSavegameList(); + _fios_items.Clear(); return true; } @@ -463,7 +463,7 @@ DEF_CONSOLE_CMD(ConPrintWorkingDirectory) /* XXX - Workaround for broken file handling */ FiosGetSavegameList(SLD_LOAD_GAME); - FiosFreeSavegameList(); + _fios_items.Clear(); FiosGetDescText(&path, NULL); IConsolePrint(CC_DEFAULT, path); |