summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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; }
};