project_files/HedgewarsMobile/Classes/GameSetup.m
changeset 3523 6592fbb969da
parent 3522 156c04c6a3d8
child 3535 9e78c1f3d8d8
--- a/project_files/HedgewarsMobile/Classes/GameSetup.m	Sat Jun 19 00:48:47 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/GameSetup.m	Sun Jun 20 18:35:59 2010 +0200
@@ -103,7 +103,7 @@
 // unpacks ammostore data from the selected ammo.plist to a sequence of engine commands
 -(void) provideAmmoData:(NSString *)ammostoreName forPlayingTeams:(NSInteger) numberOfTeams {
     NSString *weaponPath = [[NSString alloc] initWithFormat:@"%@/%@",WEAPONS_DIRECTORY(),ammostoreName];
-    NSDictionary *ammoData = [[NSDictionary alloc] initWithContentsOfFile:ammoDataFile];
+    NSDictionary *ammoData = [[NSDictionary alloc] initWithContentsOfFile:weaponPath];
     [weaponPath release];
     
     NSString *ammloadt = [[NSString alloc] initWithFormat:@"eammloadt %@", [ammoData objectForKey:@"ammostore_initialqt"]];
@@ -306,7 +306,7 @@
                                   ofColor:[teamData objectForKey:@"color"]];
                 }
                 
-                [self provideAmmoData:@"Default" forPlayingTeams:[teamsConfig count]];
+                [self provideAmmoData:@"Default.plist" forPlayingTeams:[teamsConfig count]];
                 
                 clientQuit = NO;
 			} else {