cocoaTouch/GameSetup.m
changeset 2743 39d097ac2276
parent 2738 bfccb2ec4334
child 2753 2305bb5dc5f2
--- a/cocoaTouch/GameSetup.m	Wed Feb 03 13:02:28 2010 +0000
+++ b/cocoaTouch/GameSetup.m	Wed Feb 03 23:36:42 2010 +0000
@@ -247,7 +247,7 @@
 #pragma mark -
 #pragma mark Setting methods
 -(const char **)getSettings {
-	const char **gameArgs = (const char**) malloc(sizeof(char*) * 7);
+	const char **gameArgs = (const char**) malloc(sizeof(char*) * 6);
 	NSString *ipcString = [[NSString alloc] initWithFormat:@"%d", ipcPort];
 	NSString *localeString = [[NSString alloc] initWithFormat:@"%@.txt", [[NSLocale currentLocale] localeIdentifier]];
 	
@@ -256,8 +256,7 @@
 	gameArgs[2] = [[systemSettings objectForKey:@"sounds"] UTF8String];	//isSoundEnabled
 	gameArgs[3] = [[systemSettings objectForKey:@"music"] UTF8String];	//isMusicEnabled
 	gameArgs[4] = [localeString UTF8String];				//cLocaleFName
-	gameArgs[5] = [[systemSettings objectForKey:@"volume"] UTF8String];	//cInitVolume
-	gameArgs[6] = [[systemSettings objectForKey:@"alternate"] UTF8String];	//cAltDamage
+	gameArgs[5] = [[systemSettings objectForKey:@"alternate"] UTF8String];	//cAltDamage
 	
 	[localeString release];
 	[ipcString release];