mirror of https://github.com/axmolengine/axmol.git
Merge pull request #14927 from mogemimi/fix-unsigned-comparison-warn
Fix warning and a bug in FontAtlasCache::unloadFontAtlasTTF()
This commit is contained in:
commit
c642014d1e
|
@ -266,7 +266,7 @@ void FontAtlasCache::unloadFontAtlasTTF(const std::string& fontFileName)
|
|||
auto item = _atlasMap.begin();
|
||||
while (item != _atlasMap.end())
|
||||
{
|
||||
if (item->first.find(fontFileName) >= 0)
|
||||
if (item->first.find(fontFileName) != std::string::npos)
|
||||
{
|
||||
CC_SAFE_RELEASE_NULL(item->second);
|
||||
item = _atlasMap.erase(item);
|
||||
|
|
Loading…
Reference in New Issue