--- a/project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m Sat Dec 30 01:22:11 2017 +0100
+++ b/project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m Sat Dec 30 01:31:27 2017 +0100
@@ -183,6 +183,10 @@
#pragma mark -
#pragma mark EngineProtocolDelegate methods
- (void)gameEndedWithStatistics:(NSArray *)stats {
+ [self performSelectorOnMainThread:@selector(presentStats:) withObject:stats waitUntilDone:NO];
+}
+
+- (void)presentStats:(NSArray *)stats {
if (stats != nil) {
StatsPageViewController *statsPage = [[StatsPageViewController alloc] init];
statsPage.statsArray = stats;