Merge pull request #65896 from KoBeWi/breakt_the_crash

Fix crash when playing Tween right after finishing
This commit is contained in:
Rémi Verschelde 2022-09-16 14:57:32 +02:00
commit 27a33e7efa

View File

@ -315,6 +315,7 @@ bool Tween::step(float p_delta) {
running = false;
dead = true;
emit_signal(SNAME("finished"));
break;
} else {
emit_signal(SNAME("loop_finished"), loops_done);
current_step = 0;