mirror of https://github.com/axmolengine/axmol.git
fixes #3734
This commit is contained in:
parent
47b978803e
commit
3210e12e1c
|
@ -275,8 +275,7 @@ std::set<unsigned int>* CCBMFontConfiguration::parseBinaryConfigFile(unsigned ch
|
||||||
|
|
||||||
unsigned long remains = size;
|
unsigned long remains = size;
|
||||||
|
|
||||||
unsigned char version = pData[3];
|
CCASSERT(pData[3] == 3, "Only version 3 is supported");
|
||||||
CCASSERT(version == 3, "Only version 3 is supported");
|
|
||||||
|
|
||||||
pData += 4; remains -= 4;
|
pData += 4; remains -= 4;
|
||||||
|
|
||||||
|
@ -343,8 +342,7 @@ std::set<unsigned int>* CCBMFontConfiguration::parseBinaryConfigFile(unsigned ch
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const char *value = (const char *)pData;
|
const char *value = (const char *)pData;
|
||||||
size_t len = strlen(value);
|
CCASSERT(strlen(value) < blockSize, "Block size should be less then string");
|
||||||
CCASSERT(len < blockSize, "Block size should be less then string");
|
|
||||||
|
|
||||||
_atlasName = FileUtils::getInstance()->fullPathFromRelativeFile(value, controlFile);
|
_atlasName = FileUtils::getInstance()->fullPathFromRelativeFile(value, controlFile);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue