Index: core/src/fxge/ge/fx_ge_fontmap.cpp |
diff --git a/core/src/fxge/ge/fx_ge_fontmap.cpp b/core/src/fxge/ge/fx_ge_fontmap.cpp |
index af6c43fe9eaceb12b3c2ca8f74a2f335b29372d6..3ef5c45d4c151a42bacd28b1a431c74ed617b9fd 100644 |
--- a/core/src/fxge/ge/fx_ge_fontmap.cpp |
+++ b/core/src/fxge/ge/fx_ge_fontmap.cpp |
@@ -1540,13 +1540,11 @@ FX_DWORD CFX_FolderFontInfo::GetFontData(void* hFont, |
} |
} |
FX_DWORD datasize = 0; |
- FX_DWORD offset; |
+ FX_DWORD offset = 0; |
if (table == 0) { |
datasize = pFont->m_FontOffset ? 0 : pFont->m_FileSize; |
- offset = 0; |
} else if (table == 0x74746366) { |
datasize = pFont->m_FontOffset ? pFont->m_FileSize : 0; |
- offset = 0; |
} else { |
FX_DWORD nTables = pFont->m_FontTables.GetLength() / 16; |
for (FX_DWORD i = 0; i < nTables; i++) { |