summaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authorPeterN <peter1138@openttd.org>2021-04-29 22:46:42 +0100
committerGitHub <noreply@github.com>2021-04-29 22:46:42 +0100
commitf018471b36fe1ffaedf98430b4156ad369e26c66 (patch)
treee3636601a3463b81c6b14dc56dd344bb51d242fb /src/os
parent9a8756d7ed6fdde20bad9be8c8b8bc8fda0170f9 (diff)
downloadopenttd-f018471b36fe1ffaedf98430b4156ad369e26c66.tar.xz
Cleanup: Remove old FiosList helper methods. (#9139)
Diffstat (limited to 'src/os')
-rw-r--r--src/os/windows/win32.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/windows/win32.cpp b/src/os/windows/win32.cpp
index ddcfd4866..eee81be40 100644
--- a/src/os/windows/win32.cpp
+++ b/src/os/windows/win32.cpp
@@ -209,7 +209,7 @@ void FiosGetDrives(FileList &file_list)
GetLogicalDriveStrings(lengthof(drives), drives);
for (s = drives; *s != '\0';) {
- FiosItem *fios = file_list.Append();
+ FiosItem *fios = &file_list.emplace_back();
fios->type = FIOS_TYPE_DRIVE;
fios->mtime = 0;
seprintf(fios->name, lastof(fios->name), "%c:", s[0] & 0xFF);