Explorar o código

Fix crash when playing Tween right after finishing

kobewi %!s(int64=3) %!d(string=hai) anos
pai
achega
1a462bc84e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      scene/animation/tween.cpp

+ 1 - 0
scene/animation/tween.cpp

@@ -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;