project_files/HedgewarsMobile/Classes/MainMenuViewController.m
changeset 6866 efdd2e4fc45c
parent 6865 fe19af8278e6
child 6869 a187c280dd3d
--- a/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Sun Apr 08 23:31:02 2012 +0200
+++ b/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Sun Apr 08 23:41:34 2012 +0200
@@ -61,7 +61,7 @@
 
     // prompt for restoring any previous game
     NSString *saveString = [userDefaults objectForKey:@"savedGamePath"];
-    if (saveString != nil && [saveString isEqualToString:@""] == NO) {
+    if (saveString != nil && [saveString isEqualToString:@""] == NO && [[userDefaults objectForKey:@"saveIsValid"] boolValue]) {
         if (self.restoreViewController == nil) {
             NSString *xibName = [@"RestoreViewController-" stringByAppendingString:(IS_IPAD() ? @"iPad" : @"iPhone")];
             RestoreViewController *restored = [[RestoreViewController alloc] initWithNibName:xibName bundle:nil];