diff --git a/addons/escoria-core/game/core-scripts/esc/commands/wait.gd b/addons/escoria-core/game/core-scripts/esc/commands/wait.gd index 40f4ede1..947061fa 100644 --- a/addons/escoria-core/game/core-scripts/esc/commands/wait.gd +++ b/addons/escoria-core/game/core-scripts/esc/commands/wait.gd @@ -54,4 +54,7 @@ func run(command_params: Array) -> int: # Function called when the command is interrupted. func interrupt(): + if timer == null: + return + timer.emit_signal("timeout")