Skip to content

Commit

Permalink
Prevent [CCSpriteFrameCache +purgeSpriteFrameCache] from discarding c…
Browse files Browse the repository at this point in the history
…onfiguration settings.
  • Loading branch information
slembcke committed Oct 1, 2014
1 parent c2cda65 commit af0afb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cocos2d/CCSpriteFrameCache.m
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ +(id)alloc

+(void)purgeSharedSpriteFrameCache
{
_sharedSpriteFrameCache = nil;
[[CCSpriteFrameCache sharedSpriteFrameCache] removeSpriteFrames];
}

-(id) init
Expand All @@ -88,7 +88,7 @@ -(id) init
_spriteFrames = [[NSMutableDictionary alloc] initWithCapacity: 100];
_spriteFramesAliases = [[NSMutableDictionary alloc] initWithCapacity:10];
_loadedFilenames = [[NSMutableSet alloc] initWithCapacity:30];
_spriteFrameFileLookup = [[NSMutableDictionary alloc] init];
_spriteFrameFileLookup = [[NSMutableDictionary alloc] init];
}

return self;
Expand Down

0 comments on commit af0afb5

Please sign in to comment.