Skip to content

Commit

Permalink
Merge pull request #1381 from danielgronlund/atlas-assets-fix
Browse files Browse the repository at this point in the history
Fixes atlas asset loading bug.
  • Loading branch information
s1ddok committed May 22, 2016
2 parents 091ce39 + c629f74 commit 623a76c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos2d/CCSpriteFrameCache.m
Original file line number Diff line number Diff line change
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 623a76c

Please sign in to comment.