Skip to content

Commit

Permalink
Fixes issue that caused graphics loading to fail when only using @1x
Browse files Browse the repository at this point in the history
…graphics in an atlas sprite asset.
  • Loading branch information
danielgronlund committed May 22, 2016
1 parent 3dd79d9 commit 09720d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos2d/CCSpriteFrameCache.m
Expand Up @@ -445,7 +445,7 @@ -(void) addSpriteFramesFromSpriteAtlasAssetNamed:(NSString *)atlasAssetName

if (indexes.count == 0) {
// Falling back to using @1x graphics if the expected resolution is not found.
[indexes addIndexes:[self indexesForImagePaths:imagePaths forFilename:atlasAssetName withSuffix:nil]];
[indexes addIndexes:[self indexesForImagePaths:imagePaths forFilename:atlasAssetName withSuffix:@""]];
scaleSuffix = nil;
}

Expand Down

0 comments on commit 09720d9

Please sign in to comment.