I'm pretty new to iOS, and I have no idea how to find a decent stacktrace like JAVA, so all I can find on why it's crashing is, "sigabrt".
I know it has something to do with this code I just added.
-(void) clearGame {
for (CCSprite *sprite in placedSprites) {
if(sprite == nil) continue;
[self removeChild:sprite cleanup:NO];
[placedSprites removeObject:sprite];
}
placedSprites = [[NSMutableArray alloc] initWithCapacity:1000];
}
Where the class I'm adding this to is a Layer in cocos2d. In it's init method, I have
placedSprites = [[NSMutableArray alloc] initWithCapacity:1000];
I don't know what could be wrong, so any help is appreciated.
Thank you!