mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-25 22:23:42 +08:00
[libgdx] Fixed AnimationState EventQueue.drain().
Listener events can resize the array.
This commit is contained in:
parent
a5ac6e4dd5
commit
0e16ef9c3d
@ -1369,8 +1369,8 @@ public class AnimationState {
|
||||
drainDisabled = true;
|
||||
|
||||
SnapshotArray<AnimationStateListener> listenersArray = AnimationState.this.listeners;
|
||||
Object[] objects = this.objects.items;
|
||||
for (int i = 0; i < this.objects.size; i += 2) {
|
||||
Object[] objects = this.objects.items;
|
||||
var type = (EventType)objects[i];
|
||||
var entry = (TrackEntry)objects[i + 1];
|
||||
int nn = listenersArray.size;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user