Hello.
I have a looping animation on my game character.
I use spine runtimes in LibGDX:
The game crashes to desktop with this error message:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -2147483648
at com.esotericsoftware.spine.Animation.binarySearch(Animation.java:132)
at com.esotericsoftware.spine.Animation$AttachmentTimeline.apply(Animation.java:515)
at com.esotericsoftware.spine.Animation.apply(Animation.java:79)
at no.dkit.gamelib.xxxx.core.game.model.body.agent.SpinePlayerBody.update(SpinePlayerBody.java:107)
In the game loop, the animation is updated like this:
time += getAnimationSpeed();
animation.apply(tweenSkeleton, lastTime, time, true, null);
lastTime = time;
How can I resolve this problem?