project_files/HedgewarsMobile/Classes/GameConfigViewController.m
changeset 4856 dbc256913b35
parent 4763 c228a4841e3f
child 4861 91f889289a47
--- a/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Tue Jan 18 23:08:47 2011 +0100
+++ b/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Wed Jan 19 01:12:55 2011 +0100
@@ -240,10 +240,12 @@
         statsPage.modalPresentationStyle = UIModalPresentationPageSheet;
     [self presentModalViewController:statsPage animated:NO];
 
+    // also modify SavedGamesViewController.m
     NSArray *stats = [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
-    if ([stats count] == 0)
+    if ([stats count] <= 1) {
+        DLog(@"%@",stats);
         [statsPage dismissModalViewControllerAnimated:NO];
-    else {
+    } else {
         statsPage.statsArray = stats;
         [statsPage.tableView reloadData];
         [statsPage viewWillAppear:YES];