project_files/HedgewarsMobile/Classes/SquareButtonView.m
branchqmlfrontend
changeset 11408 b894922d58cc
parent 11148 064a53861759
child 12877 00215a7ec5f5
--- a/project_files/HedgewarsMobile/Classes/SquareButtonView.m	Tue Sep 08 19:20:58 2015 +0300
+++ b/project_files/HedgewarsMobile/Classes/SquareButtonView.m	Mon Nov 16 22:57:24 2015 +0300
@@ -61,7 +61,7 @@
 -(void) selectColor:(NSUInteger) color {
     if (color != self.selectedColor) {
         self.selectedColor = color;
-        self.colorIndex = [self.colorArray indexOfObject:[NSNumber numberWithUnsignedInt:color]];
+        self.colorIndex = [self.colorArray indexOfObject:[NSNumber numberWithUnsignedInteger:color]];
 
         self.backgroundColor = [UIColor colorWithRed:((color & 0x00FF0000) >> 16)/255.0f
                                                green:((color & 0x0000FF00) >> 8)/255.0f