--- a/project_files/HedgewarsMobile/Classes/GameConfigViewController.m Thu Nov 03 00:56:44 2011 +0100
+++ b/project_files/HedgewarsMobile/Classes/GameConfigViewController.m Thu Nov 03 01:10:25 2011 +0100
@@ -210,7 +210,7 @@
script = self.schemeWeaponConfigViewController.scriptCommand;
// create the configuration file that is going to be sent to engine
- NSDictionary *gameDictionary = [NSDictionary dictionaryWithObjectsAndKeys:
+ NSDictionary *gameDictionary = [[NSDictionary alloc] initWithObjectsAndKeys:
self.mapConfigViewController.seedCommand,@"seed_command",
self.mapConfigViewController.templateFilterCommand,@"templatefilter_command",
self.mapConfigViewController.mapGenCommand,@"mapgen_command",
@@ -223,9 +223,8 @@
script,@"mission_command",
nil];
- GameInterfaceBridge *bridge = [[GameInterfaceBridge alloc] initWithController:self];
- [bridge startLocalGame:gameDictionary];
- [bridge release];
+ [GameInterfaceBridge startLocalGame:gameDictionary];
+ [gameDictionary release];
}
-(void) loadNiceHogs {