Fix crash when playing Tween right after finishing

(cherry picked from commit 1a462bc84e)
This commit is contained in:
kobewi 2022-09-16 14:20:12 +02:00 committed by Rémi Verschelde
parent ce310c1e39
commit 1aee1b1720

View file

@ -311,6 +311,7 @@ bool SceneTreeTween::step(float p_delta) {
running = false; running = false;
dead = true; dead = true;
emit_signal(SceneStringNames::get_singleton()->finished); emit_signal(SceneStringNames::get_singleton()->finished);
break;
} else { } else {
emit_signal(SceneStringNames::get_singleton()->loop_finished, loops_done); emit_signal(SceneStringNames::get_singleton()->loop_finished, loops_done);
current_step = 0; current_step = 0;