From 376d746686e08ab6052e144a76c4217d0a55cfd9 Mon Sep 17 00:00:00 2001 From: Aloshi Date: Thu, 12 Sep 2013 16:56:42 -0500 Subject: [PATCH] Fix newlines not initializing font vertices. --- src/Font.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Font.cpp b/src/Font.cpp index 8269c3672..5e200337a 100644 --- a/src/Font.cpp +++ b/src/Font.cpp @@ -502,6 +502,7 @@ TextCache* Font::buildTextCache(const std::string& text, float offsetX, float of { y += (float)getHeight(); x = offsetX; + memset(&vert[i], 0, 6 * sizeof(float)); continue; }