diff options
author | PeterN <peter1138@openttd.org> | 2021-04-29 22:46:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-29 22:46:42 +0100 |
commit | f018471b36fe1ffaedf98430b4156ad369e26c66 (patch) | |
tree | e3636601a3463b81c6b14dc56dd344bb51d242fb /src/console_cmds.cpp | |
parent | 9a8756d7ed6fdde20bad9be8c8b8bc8fda0170f9 (diff) | |
download | openttd-f018471b36fe1ffaedf98430b4156ad369e26c66.tar.xz |
Cleanup: Remove old FiosList helper methods. (#9139)
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 9dce39909..401a52b1f 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -59,7 +59,7 @@ public: /** Declare the file storage cache as being invalid, also clears all stored files. */ void InvalidateFileList() { - this->Clear(); + this->clear(); this->file_list_valid = false; } @@ -403,7 +403,7 @@ DEF_CONSOLE_CMD(ConListFiles) } _console_file_list.ValidateFileList(true); - for (uint i = 0; i < _console_file_list.Length(); i++) { + for (uint i = 0; i < _console_file_list.size(); i++) { IConsolePrintF(CC_DEFAULT, "%d) %s", i, _console_file_list[i].title); } |