summaryrefslogtreecommitdiff
path: root/win32.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-03-27 10:35:01 +0000
committertron <tron@openttd.org>2005-03-27 10:35:01 +0000
commitaba225c88d011b819690dff0a2a17de32c616443 (patch)
tree5189a328ed1fa26837def0f6ff64fab6ee20180e /win32.c
parente01338fcf578cb4e92891d49bdf7570849dd58d9 (diff)
downloadopenttd-aba225c88d011b819690dff0a2a17de32c616443.tar.xz
(svn r2084) Set the name for drive items
Diffstat (limited to 'win32.c')
-rw-r--r--win32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/win32.c b/win32.c
index 97d87255f..3d07989d6 100644
--- a/win32.c
+++ b/win32.c
@@ -1673,6 +1673,7 @@ FiosItem *FiosGetSavegameList(int *num, int mode)
for (s = drives; *s != '\0';) {
fios = FiosAlloc();
fios->type = FIOS_TYPE_DRIVE;
+ sprintf(fios->name, "%c:", s[0]);
sprintf(fios->title, "%c:", s[0]);
while (*s++ != '\0') {}
}
@@ -1777,6 +1778,7 @@ FiosItem *FiosGetScenarioList(int *num, int mode)
for (s = drives; *s != '\0';) {
fios = FiosAlloc();
fios->type = FIOS_TYPE_DRIVE;
+ sprintf(fios->name, "%c:", s[0]);
sprintf(fios->title, "%c:", s[0]);
while (*s++ != '\0') {}
}