diff options
author | skidd13 <skidd13@openttd.org> | 2008-06-02 14:27:58 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2008-06-02 14:27:58 +0000 |
commit | 8b3db220757bd4701b5a87830cc41239bd5086f1 (patch) | |
tree | 4c4410cabaf08a8d35010d548f26880e398ac0cc | |
parent | f1c954e842f5b426737d2bb0ffe5a87bae3d2cd6 (diff) | |
download | openttd-8b3db220757bd4701b5a87830cc41239bd5086f1.tar.xz |
(svn r13360) -Fix (r13359): Forgot to remove some instances of FiosAlloc()
-rw-r--r-- | src/fios.h | 2 | ||||
-rw-r--r-- | src/os2.cpp | 2 | ||||
-rw-r--r-- | src/win32.cpp | 4 |
3 files changed, 3 insertions, 5 deletions
diff --git a/src/fios.h b/src/fios.h index 7ec8e6767..7e7e80975 100644 --- a/src/fios.h +++ b/src/fios.h @@ -105,8 +105,6 @@ StringID FiosGetDescText(const char **path, uint32 *total_free); bool FiosDelete(const char *name); /* Make a filename from a name */ void FiosMakeSavegameName(char *buf, const char *name, size_t size); -/* Allocate a new FiosItem */ -FiosItem *FiosAlloc(); int CDECL compare_FiosItems(const void *a, const void *b); diff --git a/src/os2.cpp b/src/os2.cpp index 3d1c4df64..4e95103dc 100644 --- a/src/os2.cpp +++ b/src/os2.cpp @@ -67,7 +67,7 @@ void FiosGetDrives() #endif if (disk == disk2) { - FiosItem *fios = FiosAlloc(); + FiosItem *fios = _fios_items.Append()(); fios->type = FIOS_TYPE_DRIVE; fios->mtime = 0; #ifndef __INNOTEK_LIBC__ diff --git a/src/win32.cpp b/src/win32.cpp index ba35b7e9c..9f671c9f6 100644 --- a/src/win32.cpp +++ b/src/win32.cpp @@ -780,7 +780,7 @@ void FiosGetDrives() { #if defined(WINCE) /* WinCE only knows one drive: / */ - FiosItem *fios = FiosAlloc(); + FiosItem *fios = _fios_items.Append()(); fios->type = FIOS_TYPE_DRIVE; fios->mtime = 0; snprintf(fios->name, lengthof(fios->name), PATHSEP ""); @@ -791,7 +791,7 @@ void FiosGetDrives() GetLogicalDriveStrings(sizeof(drives), drives); for (s = drives; *s != '\0';) { - FiosItem *fios = FiosAlloc(); + FiosItem *fios = _fios_items.Append()(); fios->type = FIOS_TYPE_DRIVE; fios->mtime = 0; snprintf(fios->name, lengthof(fios->name), "%c:", s[0] & 0xFF); |