From 8f139a8fce6ff88f68a4b0e70bdbb5bc3240c549 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Mon, 9 Mar 2015 08:37:41 -0700 Subject: [PATCH] Fix for some compilers --- project/src/text/Font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/text/Font.cpp b/project/src/text/Font.cpp index 621697c15..d88bffe51 100644 --- a/project/src/text/Font.cpp +++ b/project/src/text/Font.cpp @@ -726,9 +726,9 @@ namespace lime { if (!glyphSet->glyphs.empty ()) { - for (wchar_t& c : glyphSet->glyphs) { + for (unsigned int i = 0; i < glyphSet->glyphs.length (); i++) { - GetGlyphMetrics_Push ((FT_Face)face, FT_Get_Char_Index ((FT_Face)face, c), glyphList); + GetGlyphMetrics_Push ((FT_Face)face, FT_Get_Char_Index ((FT_Face)face, glyphSet->glyphs[i]), glyphList); }