summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/renderercommon/tr_font.c3
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++;