summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-06-29 12:03:44 +0000
committerrubidium <rubidium@openttd.org>2013-06-29 12:03:44 +0000
commitfac0b83df660536c497395fcad5ad55c54a5d352 (patch)
treef5e62dbe984cb620419cde3319e82a23a0f02fcb /src
parentdd49c84363cac334783849b9f8d05e6d497d1520 (diff)
downloadopenttd-fac0b83df660536c497395fcad5ad55c54a5d352.tar.xz
(svn r25511) -Fix-ish: add the same printable key assert to the sprite font cache as the freetype font cache
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 2c1f7aafa..b51cecaf6 100644
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -76,7 +76,7 @@ public:
virtual const Sprite *GetGlyph(GlyphID key);
virtual uint GetGlyphWidth(GlyphID key);
virtual bool GetDrawGlyphShadow();
- virtual GlyphID MapCharToGlyph(WChar key) { return SPRITE_GLYPH | key; }
+ virtual GlyphID MapCharToGlyph(WChar key) { assert(IsPrintable(key)); return SPRITE_GLYPH | key; }
virtual const void *GetFontTable(uint32 tag, size_t &length) { length = 0; return NULL; }
};