1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-01-24 09:16:48 +00:00

fix possible crash when playing transition animation

This commit is contained in:
fgenesis 2025-01-21 23:28:56 +01:00
parent 3e16ddb89e
commit dd403d7d55

View file

@ -533,7 +533,7 @@ float AnimationLayer::transitionAnimate(std::string anim, float time, int loop)
{ {
createTransitionAnimation(*a, time); createTransitionAnimation(*a, time);
timeMultiplier = 1; timeMultiplier = 1;
lastKeyframeIndex = INITIAL_KEYFRAME_IDX;
currentAnimation = -1; currentAnimation = -1;
this->loop = 0; this->loop = 0;
timer = 0; timer = 0;