project_files/HedgewarsMobile/Classes/VoicesViewController.m
branchios-revival
changeset 11148 064a53861759
parent 10108 c68cf030eded
child 11206 2e80c9861818
equal deleted inserted replaced
11147:f9c460720e02 11148:064a53861759
   102 
   102 
   103 
   103 
   104 #pragma mark -
   104 #pragma mark -
   105 #pragma mark Table view delegate
   105 #pragma mark Table view delegate
   106 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
   106 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
   107     int newRow = [indexPath row];
   107     NSInteger newRow = [indexPath row];
   108     int oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1;
   108     NSInteger oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1;
   109 
   109 
   110     if (newRow != oldRow) {
   110     if (newRow != oldRow) {
   111         [teamDictionary setObject:[voiceArray objectAtIndex:newRow] forKey:@"voicepack"];
   111         [teamDictionary setObject:[voiceArray objectAtIndex:newRow] forKey:@"voicepack"];
   112 
   112 
   113         // tell our boss to write this new stuff on disk
   113         // tell our boss to write this new stuff on disk