Skip to content
This repository has been archived by the owner on Dec 28, 2021. It is now read-only.

Commit

Permalink
update libgdx tile index check
Browse files Browse the repository at this point in the history
  • Loading branch information
LeHaine committed Dec 7, 2020
1 parent d63377d commit 2ed7fd9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ open class GdxTileset(json: TilesetDefJson) : Tileset(json) {
if (ty >= tiles.size) {
return null
}
if (tx >= tiles[tx].size) {
if (tx >= tiles[ty].size) {
return null
}
val region = tiles[ty][tx]
Expand Down

0 comments on commit 2ed7fd9

Please sign in to comment.