From 85947794b92fc4ee4652e279ff2434cca1912e66 Mon Sep 17 00:00:00 2001 From: Duncan Brown Date: Wed, 4 May 2022 18:26:13 -0400 Subject: [PATCH] fix: necessary guard in case 'run' hasn't been executed yet --- addons/escoria-core/game/core-scripts/esc/commands/wait.gd | 3 +++ 1 file changed, 3 insertions(+) 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")