We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2cda65 commit af0afb5Copy full SHA for af0afb5
cocos2d/CCSpriteFrameCache.m
@@ -79,7 +79,7 @@ +(id)alloc
79
80
+(void)purgeSharedSpriteFrameCache
81
{
82
- _sharedSpriteFrameCache = nil;
+ [[CCSpriteFrameCache sharedSpriteFrameCache] removeSpriteFrames];
83
}
84
85
-(id) init
@@ -88,7 +88,7 @@ -(id) init
88
_spriteFrames = [[NSMutableDictionary alloc] initWithCapacity: 100];
89
_spriteFramesAliases = [[NSMutableDictionary alloc] initWithCapacity:10];
90
_loadedFilenames = [[NSMutableSet alloc] initWithCapacity:30];
91
- _spriteFrameFileLookup = [[NSMutableDictionary alloc] init];
+ _spriteFrameFileLookup = [[NSMutableDictionary alloc] init];
92
93
94
return self;
0 commit comments