summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2011-11-30 20:17:27 +0000
committerglx <glx@openttd.org>2011-11-30 20:17:27 +0000
commit721c74d2796788272e5a1f745ce7e4acab0d6873 (patch)
tree22385e7dabe609e2211090e52cec0c9e69ee4225 /src
parent44918dded0fad238231c89227ae6fe749a8cf9c3 (diff)
downloadopenttd-721c74d2796788272e5a1f745ce7e4acab0d6873.tar.xz
(svn r23381) -Fix (r23380): win9x compilation
Diffstat (limited to 'src')
-rw-r--r--src/fontcache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp
index 5ded50ce7..3c7634e1f 100644
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -351,7 +351,7 @@ static int CALLBACK EnumFontCallback(const ENUMLOGFONTEX *logfont, const NEWTEXT
EFCParam *info = (EFCParam *)lParam;
/* Skip duplicates */
- if (!info->fonts.Add(logfont->elfFullName)) return 1;
+ if (!info->fonts.Add((const TCHAR*)logfont->elfFullName)) return 1;
/* Only use TrueType fonts */
if (!(type & TRUETYPE_FONTTYPE)) return 1;
/* Don't use SYMBOL fonts */