equal
deleted
inserted
replaced
270 // also set weaponset when selecting scheme, if set |
270 // also set weaponset when selecting scheme, if set |
271 NSUserDefaults *settings = [NSUserDefaults standardUserDefaults]; |
271 NSUserDefaults *settings = [NSUserDefaults standardUserDefaults]; |
272 if ([[settings objectForKey:@"sync_ws"] boolValue]) { |
272 if ([[settings objectForKey:@"sync_ws"] boolValue]) { |
273 for (NSString *str in self.listOfWeapons) { |
273 for (NSString *str in self.listOfWeapons) { |
274 if ([str isEqualToString:self.selectedScheme]) { |
274 if ([str isEqualToString:self.selectedScheme]) { |
275 int index = [self.listOfSchemes indexOfObject:str]; |
275 int row = [self.listOfSchemes indexOfObject:str]; |
276 self.selectedWeapon = str; |
276 self.selectedWeapon = str; |
277 self.lastIndexPath_we = [NSIndexPath indexPathForRow:index inSection:1]; |
277 self.lastIndexPath_we = [NSIndexPath indexPathForRow:row inSection:1]; |
278 break; |
278 break; |
279 } |
279 } |
280 } |
280 } |
281 } |
281 } |
282 } else if (index == 1) { |
282 } else if (index == 1) { |