From e9deb6ea4ea61aa7aaab5102ee5efa81b2d55541 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 24 Dec 2022 18:17:16 +0600 Subject: surely it resolves #19 --- core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src/com/ilotterytea/maxoning') diff --git a/core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java b/core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java index 6c9c4f1..be8482d 100644 --- a/core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java +++ b/core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java @@ -111,7 +111,7 @@ public class MovingChessBackground { tile.setPosition(fTile.getX() - tile.getWidth(), fTile.getY()); - if (tile.getDrawable() == fTile.getDrawable()) { + if (array.size() > 1 && tile.getDrawable() == fTile.getDrawable()) { tile.setDrawable(array.get(1).getDrawable()); } -- cgit v1.2.3