--- 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 {