Skip to content

Commit 3b104d1

Browse files
committed
shift first
1 parent 137a9ec commit 3b104d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/bwapi/values/Color.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,6 @@ private static int getRGBIndex(int red, int green, int blue) {
156156
}
157157
}
158158
}
159-
return closestColor[(byte)red >> 2][(byte)green >> 2][(byte)blue >> 2];
159+
return closestColor[(byte)(red >> 2)][(byte)(green >> 2)][(byte)(blue >> 2)];
160160
}
161161
}

0 commit comments

Comments
 (0)