diff --git a/cocos/2d/CCFontFNT.cpp b/cocos/2d/CCFontFNT.cpp index de3a4a2d89..af8a41acbe 100644 --- a/cocos/2d/CCFontFNT.cpp +++ b/cocos/2d/CCFontFNT.cpp @@ -397,6 +397,7 @@ std::set* BMFontConfiguration::parseBinaryConfigFile(unsigned char fontName n+1 string 14 null terminated string with length n */ + memcpy(&_fontSize, pData, 2); _padding.top = (unsigned char)pData[7]; _padding.right = (unsigned char)pData[8]; _padding.bottom = (unsigned char)pData[9];