Merge pull request #14927 from mogemimi/fix-unsigned-comparison-warn

Fix warning and a bug in FontAtlasCache::unloadFontAtlasTTF()
This commit is contained in:
zilongshanren 2016-01-21 10:32:56 +08:00
commit c642014d1e
1 changed files with 1 additions and 1 deletions

View File

@ -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);