project_files/HedgewarsMobile/Classes/TeamConfigViewController.m
branchios-revival
changeset 11148 064a53861759
parent 11146 f5e552f97eda
child 11325 d98070707214
--- a/project_files/HedgewarsMobile/Classes/TeamConfigViewController.m	Thu Sep 10 01:31:52 2015 +0200
+++ b/project_files/HedgewarsMobile/Classes/TeamConfigViewController.m	Thu Sep 10 01:49:15 2015 +0200
@@ -247,7 +247,7 @@
         SquareButtonView *squareButton = (SquareButtonView *)cell.accessoryView;
 
         NSInteger increaseNumber = [[selectedRow objectForKey:@"number"] intValue] + 1;
-        NSNumber *newNumber = [NSNumber numberWithInt:[self filterNumberOfHogs:increaseNumber]];
+        NSNumber *newNumber = [NSNumber numberWithInteger:[self filterNumberOfHogs:increaseNumber]];
         [squareButton setTitle:[newNumber stringValue] forState:UIControlStateNormal];
         [selectedRow setObject:newNumber forKey:@"number"];