project_files/HedgewarsMobile/Classes/WeaponCellView.m
changeset 3644 42c5684289ae
parent 3643 858b20bafb6e
child 3659 f8d5ac50e307
--- a/project_files/HedgewarsMobile/Classes/WeaponCellView.m	Thu Jul 15 03:28:29 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/WeaponCellView.m	Thu Jul 15 04:31:25 2010 +0200
@@ -144,8 +144,12 @@
         delLab.text = ((int)delayQt.value == 9) ? @"∞" : [NSString stringWithFormat:@"%d",(int)delayQt.value];
         craLab.text = ((int)crateQt.value == 9) ? @"∞" : [NSString stringWithFormat:@"%d",(int)crateQt.value];
         
-        [(UISlider *)sender setTag:self.tag];
-        [delegate valueChanged:sender];
+        [delegate updateValues:[NSArray arrayWithObjects:
+                                [NSNumber numberWithInt:(int)initialQt.value],
+                                [NSNumber numberWithInt:(int)probabilityQt.value],
+                                [NSNumber numberWithInt:(int)delayQt.value],
+                                [NSNumber numberWithInt:(int)crateQt.value], nil] 
+                       atIndex:self.tag];
     } else
         DLog(@"error - delegate = nil!");
 }