project_files/HedgewarsMobile/Classes/CommodityFunctions.m
changeset 5206 db775bddf771
parent 5201 7b9aa7aac336
child 5207 4c9ae0f484da
--- a/project_files/HedgewarsMobile/Classes/CommodityFunctions.m	Mon May 09 18:00:39 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/CommodityFunctions.m	Wed May 11 01:26:38 2011 +0200
@@ -92,7 +92,7 @@
 
 void playSound (NSString *snd) {
     NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];
-    NSNumber *audio = [prefs objectForKey:@"audio"];
+    NSNumber *audio = [prefs objectForKey:@"sound"];
 
     if (audio == nil || [audio boolValue] == YES) {
         // get the filename of the sound file: