Fix crash when playing Tween right after finishing

(cherry picked from commit 1a462bc84e095125661efb5a0254f36e73197cd9)
This commit is contained in:
kobewi 2022-09-16 14:20:12 +02:00 committed by Relintai
parent 8be98b9138
commit b97535aead

View File

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