summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2009-02-02 13:44:19 +0000
committerglx <glx@openttd.org>2009-02-02 13:44:19 +0000
commitc6bc3b869224212bf3556f44aec36052d2d7d0db (patch)
treed0499793c0769c41c2f9a183a40b3329e62a2d2e /src
parentad210c76473a08888e7e45c46ac0190d61faec7e (diff)
downloadopenttd-c6bc3b869224212bf3556f44aec36052d2d7d0db.tar.xz
(svn r15315) -Fix (r15314): make gcc happy (for once)
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 1669ec6dc..96a69db11 100644
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -169,6 +169,7 @@ static const char *GetEnglishFontName(const ENUMLOGFONTEX *logfont)
{
static char font_name[MAX_PATH];
const char *ret_font_name = NULL;
+ uint pos = 0;
HFONT font = CreateFontIndirect(&logfont->elfLogFont);
if (font == NULL) goto err1;
@@ -182,7 +183,6 @@ static const char *GetEnglishFontName(const ENUMLOGFONTEX *logfont)
dw = GetFontData(dc, 'eman', 0, buf, dw);
if (dw == GDI_ERROR) goto err3;
- uint pos = 0;
uint16 format = buf[pos++] << 8;
format += buf[pos++];
assert(format == 0);