From 84184da66ddc6d1806b13e3dd1290678c307917f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 14 Jun 2020 17:03:49 -0400 Subject: [PATCH] CFont: Prevent Wmaybe-uninitialized warning --- src/Core/Resource/CFont.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Resource/CFont.cpp b/src/Core/Resource/CFont.cpp index 7cb376a7..aee03b4a 100644 --- a/src/Core/Resource/CFont.cpp +++ b/src/Core/Resource/CFont.cpp @@ -130,7 +130,7 @@ CVector2f CFont::RenderString(const TString& rkString, CRenderer* /*pRenderer*/, // Draw stroke if (mTextureFormat == 1 || mTextureFormat == 3 || mTextureFormat == 8) { - uint8 StrokeLayer; + uint8 StrokeLayer = 0; if (mTextureFormat == 1) StrokeLayer = 1; else if (mTextureFormat == 3)