project_files/HedgewarsMobile/Classes/RestoreViewController.m
branchios-revival
changeset 11116 102684240fe8
parent 10108 c68cf030eded
child 11205 9fd7b8d3cf4d
--- a/project_files/HedgewarsMobile/Classes/RestoreViewController.m	Fri Aug 14 01:55:42 2015 +0200
+++ b/project_files/HedgewarsMobile/Classes/RestoreViewController.m	Fri Aug 14 02:02:15 2015 +0200
@@ -32,14 +32,14 @@
 
     if (theButton.tag != 0) {
         [[AudioManagerController mainManager] playClickSound];
-        [GameInterfaceBridge registerCallingController:self.parentViewController];
+        [GameInterfaceBridge registerCallingController:self.presentingViewController];
         [GameInterfaceBridge startSaveGame:[[NSUserDefaults standardUserDefaults] objectForKey:@"savedGamePath"]];
     } else {
         [[AudioManagerController mainManager] playBackSound];
         [defaults setObject:@"" forKey:@"savedGamePath"];
         [defaults synchronize];
     }
-    [self.parentViewController dismissModalViewControllerAnimated:YES];
+    [self.presentingViewController dismissViewControllerAnimated:YES completion:nil];
 }
 
 -(void) viewDidLoad {