diff --git a/src/core/AnimationState.ts b/src/core/AnimationState.ts index 1f155cbb..a6c3da37 100644 --- a/src/core/AnimationState.ts +++ b/src/core/AnimationState.ts @@ -754,7 +754,7 @@ namespace pixi_spine.core { } loopsCount() { - return Math.floor(this.trackTime / this.trackEnd); + return ~~(this.trackTime / this.animationLast); } }