[selectedLevels replaceObjectAtIndex:0 withObject:3]; NSLog(@"Count: %i, %@", 0, [selectedLevels objectAtIndex:0]); NSMutableArray *TempShortArray = [[NSMutableArray alloc] init]; NSLog(@"Count: %i, %@", i, [xTempArray objectAtIndex:i]); NSLog(@"Count: %i", [xTempArray count]); gameData[0].stars = 2; ScoreAndLevelData = [[NSMutableArray alloc] initWithCapacity:10]; [ScoreAndLevelData addObject:TempShortArray]; //objectc/5241