We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 137a9ec commit 3b104d1Copy full SHA for 3b104d1
1 file changed
src/main/java/bwapi/values/Color.java
@@ -156,6 +156,6 @@ private static int getRGBIndex(int red, int green, int blue) {
156
}
157
158
159
- return closestColor[(byte)red >> 2][(byte)green >> 2][(byte)blue >> 2];
+ return closestColor[(byte)(red >> 2)][(byte)(green >> 2)][(byte)(blue >> 2)];
160
161
0 commit comments