project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m
branchios-revival
changeset 11189 0fdef687de65
parent 11163 f65f462d5a06
child 11238 e529b597f9d1
--- a/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Sun Sep 20 02:52:49 2015 +0200
+++ b/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Sun Sep 20 02:56:33 2015 +0200
@@ -331,7 +331,8 @@
             {
                 if (![scheme isEqualToString:@"*"])
                 {
-                    self.selectedScheme = [NSString stringWithFormat:@"%@.plist",scheme];
+                    NSString *correctScheme = [scheme stringByReplacingOccurrencesOfString:@"_" withString:@" "];
+                    self.selectedScheme = [NSString stringWithFormat:@"%@.plist", correctScheme];
                 }
                 [self.topControl setEnabled:YES forSegmentAtIndex:0];
             }
@@ -346,7 +347,8 @@
             {
                 if (![weapon isEqualToString:@"*"])
                 {
-                    self.selectedWeapon = [NSString stringWithFormat:@"%@.plist",weapon];
+                    NSString *correctWeapon = [weapon stringByReplacingOccurrencesOfString:@"_" withString:@" "];
+                    self.selectedWeapon = [NSString stringWithFormat:@"%@.plist", correctWeapon];
                 }
                 [self.topControl setEnabled:YES forSegmentAtIndex:1];
             }