diff --git a/libgdx-backend/src/main/kotlin/com/lehaine/gdx/GdxTileset.kt b/libgdx-backend/src/main/kotlin/com/lehaine/gdx/GdxTileset.kt index 816bd04..682dea3 100644 --- a/libgdx-backend/src/main/kotlin/com/lehaine/gdx/GdxTileset.kt +++ b/libgdx-backend/src/main/kotlin/com/lehaine/gdx/GdxTileset.kt @@ -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]