diff --git a/Core/Font/PGF.cpp b/Core/Font/PGF.cpp index 6605467cea..062c0dff51 100644 --- a/Core/Font/PGF.cpp +++ b/Core/Font/PGF.cpp @@ -219,13 +219,13 @@ void PGF::ReadPtr(const u8 *ptr, size_t dataSize) { } // And shadow glyphs. - for (size_t i = 0; i < shadowGlyphs.size(); i++) { + for (size_t i = 0; i < glyphs.size(); i++) { size_t shadowId = glyphs[i].shadowID; if ((shadowId < shadowMap.size()) && (shadowId < shadowGlyphs.size())) { size_t charId = shadowMap[shadowId]; if (charId < glyphs.size()) { // TODO: check for pre existing shadow glyph - GetGlyph(fontData, charPointers[charId] * 4 * 8 /* ??? */, FONT_PGF_SHADOWGLYPH, shadowGlyphs[i]); + GetGlyph(fontData, charPointers[charId] * 4 * 8 /* ??? */, FONT_PGF_SHADOWGLYPH, shadowGlyphs[shadowId]); } } }