Skip to content

Commit a210664

Browse files
committed
Merge pull request #1381 from danielgronlund/atlas-assets-fix
Fixes atlas asset loading bug.
2 parents 3dd79d9 + 09720d9 commit a210664

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)