IOQ3 commit 2228

This commit is contained in:
Richard Allen 2012-10-04 13:50:41 +00:00
parent bddb1f5b0e
commit 6c68ea0d05

View file

@ -397,8 +397,8 @@ void RE_RegisterFont(const char *fontName, int pointSize, fontInfo_t *font) {
font->glyphs[i].s2 = readFloat(); font->glyphs[i].s2 = readFloat();
font->glyphs[i].t2 = readFloat(); font->glyphs[i].t2 = readFloat();
font->glyphs[i].glyph = readInt(); font->glyphs[i].glyph = readInt();
Com_Memcpy(font->glyphs[i].shaderName, &fdFile[fdOffset], 32); Q_strncpyz(font->glyphs[i].shaderName, (const char *)&fdFile[fdOffset], sizeof(font->glyphs[i].shaderName));
fdOffset += 32; fdOffset += sizeof(font->glyphs[i].shaderName);
} }
font->glyphScale = readFloat(); font->glyphScale = readFloat();
Com_Memcpy(font->name, &fdFile[fdOffset], MAX_QPATH); Com_Memcpy(font->name, &fdFile[fdOffset], MAX_QPATH);