Skip to content

Commit caae53b

Browse files
Fix one frame animations
Fix one frame animations ;c
1 parent 0c8223e commit caae53b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/com/mygdx/game/battlewindow/ContinuousGameFrame.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,11 @@ public void updateSprite(int spot, String path, boolean female) {
287287
//spriteAtlas[me] = bridge.getAtlas(path);
288288
Array<TextureRegion> regions = new Array<TextureRegion>();
289289
if (spriteAtlas[spot].findRegion("001") == null) {
290-
for (int i = 1; i < spriteAtlas[spot].getRegions().size; i++) {
290+
for (int i = 1; i < spriteAtlas[spot].getRegions().size + 1; i++) {
291291
regions.add(spriteAtlas[spot].findRegion("" + i));
292292
}
293293
} else {
294-
for (int i = 1; i < spriteAtlas[spot].getRegions().size; i++) {
294+
for (int i = 1; i < spriteAtlas[spot].getRegions().size + 1; i++) {
295295
regions.add(spriteAtlas[spot].findRegion(StringFormat(i)));
296296
}
297297
}

0 commit comments

Comments
 (0)