From dd403d7d5547ed49b56e8b596311ef1a27ded61d Mon Sep 17 00:00:00 2001 From: fgenesis Date: Tue, 21 Jan 2025 23:28:56 +0100 Subject: [PATCH] fix possible crash when playing transition animation --- BBGE/SkeletalSprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BBGE/SkeletalSprite.cpp b/BBGE/SkeletalSprite.cpp index 113f657..77235bc 100644 --- a/BBGE/SkeletalSprite.cpp +++ b/BBGE/SkeletalSprite.cpp @@ -533,7 +533,7 @@ float AnimationLayer::transitionAnimate(std::string anim, float time, int loop) { createTransitionAnimation(*a, time); timeMultiplier = 1; - + lastKeyframeIndex = INITIAL_KEYFRAME_IDX; currentAnimation = -1; this->loop = 0; timer = 0;