project_files/HedgewarsMobile/Classes/WeaponSettingsViewController.m
changeset 3737 2ba6ac8a114b
parent 3697 d5b30d6373fc
child 3829 81db3c85784b
equal deleted inserted replaced
3736:d8982f9e7e2c 3737:2ba6ac8a114b
    64 }
    64 }
    65 
    65 
    66 -(void) addWeapon:(id) sender {
    66 -(void) addWeapon:(id) sender {
    67     NSString *fileName = [[NSString alloc] initWithFormat:@"Weapon %u.plist", [self.listOfWeapons count]];
    67     NSString *fileName = [[NSString alloc] initWithFormat:@"Weapon %u.plist", [self.listOfWeapons count]];
    68 
    68 
    69     createWeaponNamed([fileName stringByDeletingPathExtension]);
    69     createWeaponNamed([fileName stringByDeletingPathExtension], 0);
    70 
    70 
    71     [self.listOfWeapons addObject:fileName];
    71     [self.listOfWeapons addObject:fileName];
    72     [fileName release];
    72     [fileName release];
    73 
    73 
    74     // order the array alphabetically, so schemes will keep their position
    74     // order the array alphabetically, so schemes will keep their position