diff options
author | morturp <morturp@gmail.com> | 2013-06-26 11:42:59 +0300 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-06-17 17:43:32 +0100 |
commit | 82803d3ca0984ae4a4e1707000737f1925c16ebd (patch) | |
tree | 9b084c5ce2b0d9882468570bbd6496e8949b3f06 /src | |
parent | dee702aaf3c7ff8dd5bcf63d1847ce5c4c79ac19 (diff) |
Prevent the skip of the glyph if it does not fit
Diffstat (limited to 'src')
-rw-r--r-- | src/renderercommon/tr_font.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/renderercommon/tr_font.c b/src/renderercommon/tr_font.c index 8524684c..33f0b59e 100644 --- a/src/renderercommon/tr_font.c +++ b/src/renderercommon/tr_font.c @@ -504,7 +504,8 @@ void RE_RegisterFont(const char *fontName, int pointSize, fontInfo_t *font) { xOut = 0; yOut = 0; ri.Free(imageBuff); - i++; + if(i == GLYPH_END) + i++; } else { Com_Memcpy(&font->glyphs[i], glyph, sizeof(glyphInfo_t)); i++; |