Skip to content

Commit

Permalink
Fixed ShortArray#lastIndexOf taking char instead of short.
Browse files Browse the repository at this point in the history
Javadoc.
  • Loading branch information
NathanSweet committed Dec 21, 2024
1 parent cf2bf3f commit e67b29d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,7 @@ protected float getImageLayerColor (TiledMapImageLayer layer, Color batchColor)
* multiplying is against the batchColor
*
* @param layer
* @param batchColor
* @return */
* @param batchColor */
protected float getTileLayerColor (TiledMapTileLayer layer, Color batchColor) {
return Color.toFloatBits(batchColor.r * layer.getCombinedTintColor().r, batchColor.g * layer.getCombinedTintColor().g,
batchColor.b * layer.getCombinedTintColor().b, batchColor.a * layer.getCombinedTintColor().a * layer.getOpacity());
Expand Down
2 changes: 1 addition & 1 deletion gdx/src/com/badlogic/gdx/utils/ShortArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public int indexOf (short value) {
return -1;
}

public int lastIndexOf (char value) {
public int lastIndexOf (short value) {
short[] items = this.items;
for (int i = size - 1; i >= 0; i--)
if (items[i] == value) return i;
Expand Down

0 comments on commit e67b29d

Please sign in to comment.