kill invalid tweens before they run
This commit is contained in:
parent
b006648774
commit
7e712e5468
1 changed files with 1 additions and 1 deletions
2
board.gd
2
board.gd
|
@ -94,7 +94,7 @@ func do_step():
|
|||
|
||||
if pieces_moving.is_empty():
|
||||
# no tweens -> invalid -> annoying error message
|
||||
tween.stop()
|
||||
tween.kill()
|
||||
|
||||
func undo_step() -> Callable:
|
||||
var undos: Array[Callable] = []
|
||||
|
|
Loading…
Reference in a new issue