project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m
changeset 6908 896ed2afcfb8
parent 6864 6fdd23cdeaeb
child 7242 ed8bd253408c
--- a/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Sun Apr 22 03:59:24 2012 +0200
+++ b/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Sun Apr 22 04:48:11 2012 +0200
@@ -272,9 +272,9 @@
             if ([[settings objectForKey:@"sync_ws"] boolValue]) {
                 for (NSString *str in self.listOfWeapons) {
                     if ([str isEqualToString:self.selectedScheme]) {
-                        int index = [self.listOfSchemes indexOfObject:str];
+                        int row = [self.listOfSchemes indexOfObject:str];
                         self.selectedWeapon = str;
-                        self.lastIndexPath_we = [NSIndexPath indexPathForRow:index inSection:1];
+                        self.lastIndexPath_we = [NSIndexPath indexPathForRow:row inSection:1];
                         break;
                     }
                 }