--- a/project_files/HedgewarsMobile/Classes/RestoreViewController.m Sat Sep 24 03:00:57 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/RestoreViewController.m Sat Sep 24 04:53:53 2011 +0200
@@ -42,8 +42,11 @@
self.interfaceBridge = bridge;
[bridge release];
}
+ // TODO: it is useless to keep the modalcontroller around when calling interfacebridge
+ // but as long as it is an instance we mustn't release it beforehand
+ // moreover in this way the stats don't show up :/
+ [self.interfaceBridge startSaveGame:[defaults objectForKey:@"savedGamePath"]];
[self.parentViewController dismissModalViewControllerAnimated:NO];
- [self.interfaceBridge startSaveGame:[defaults objectForKey:@"savedGamePath"]];
} else {
[AudioManagerController playBackSound];
[defaults setObject:@"" forKey:@"savedGamePath"];