diff --git a/core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java b/core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java index 1178896702..ae164323cd 100644 --- a/core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java +++ b/core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java @@ -1108,8 +1108,8 @@ public class TextureArraySpriteBatch implements Batch { mesh.setVertices(vertices, 0, idx); - mesh.getIndicesBuffer().position(0); - mesh.getIndicesBuffer().limit(count); + ((Buffer) mesh.getIndicesBuffer()).position(0); + ((Buffer) mesh.getIndicesBuffer()).limit(count); if (blendingDisabled) { Gdx.gl.glDisable(GL20.GL_BLEND);