From 2ed7fd956d01fd30890d866d1de90d94ca3c579f Mon Sep 17 00:00:00 2001 From: LeHaine Date: Sun, 6 Dec 2020 19:50:20 -0500 Subject: [PATCH] update libgdx tile index check --- libgdx-backend/src/main/kotlin/com/lehaine/gdx/GdxTileset.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]