project_files/HedgewarsMobile/Classes/GameConfigViewController.m
changeset 4760 224c31b3ce7d
parent 4757 7ca9ebb6895d
child 4763 c228a4841e3f
--- a/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Thu Dec 30 04:54:25 2010 +0100
+++ b/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Fri Dec 31 00:10:38 2010 +0100
@@ -239,12 +239,15 @@
         StatsPageViewController *statsPage = [[StatsPageViewController alloc] initWithStyle:UITableViewStyleGrouped];
         [self presentModalViewController:statsPage animated:NO];
 
-        statsPage.statsDictionary = [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
-        if (statsPage.statsDictionary == nil)
+        NSArray *stats = [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
+        if ([stats count] == 0)
             [statsPage dismissModalViewControllerAnimated:NO];
-        else
+        else {
+            statsPage.statsArray = stats;
             [statsPage.tableView reloadData];
-        DLog(@"%@",statsPage.statsDictionary);
+            [statsPage viewWillAppear:YES];
+        }
+
         [statsPage release];
     }