Skip to content

Commit 09720d9

Browse files
Fixes issue that caused graphics loading to fail when only using @1x graphics in an atlas sprite asset.
1 parent 3dd79d9 commit 09720d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d/CCSpriteFrameCache.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ -(void) addSpriteFramesFromSpriteAtlasAssetNamed:(NSString *)atlasAssetName
445445

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

0 commit comments

Comments
 (0)