From 8547eecd316bf782c054a269520d7d356f901714 Mon Sep 17 00:00:00 2001 From: CPkmn Date: Fri, 9 Aug 2013 18:49:01 -0700 Subject: [PATCH] Update PGF.cpp --- Core/Font/PGF.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Font/PGF.cpp b/Core/Font/PGF.cpp index ce09309220..6605467cea 100644 --- a/Core/Font/PGF.cpp +++ b/Core/Font/PGF.cpp @@ -221,9 +221,9 @@ void PGF::ReadPtr(const u8 *ptr, size_t dataSize) { // And shadow glyphs. for (size_t i = 0; i < shadowGlyphs.size(); i++) { size_t shadowId = glyphs[i].shadowID; - if ((shadowId >= 0) && (shadowId < shadowMap.size()) && (shadowId < shadowGlyphs.size())) { + if ((shadowId < shadowMap.size()) && (shadowId < shadowGlyphs.size())) { size_t charId = shadowMap[shadowId]; - if ((charId >= 0) && (charId < glyphs.size())) { + if (charId < glyphs.size()) { // TODO: check for pre existing shadow glyph GetGlyph(fontData, charPointers[charId] * 4 * 8 /* ??? */, FONT_PGF_SHADOWGLYPH, shadowGlyphs[i]); }