Skip to content

Commit

Permalink
fix: necessary guard in case 'run' hasn't been executed yet
Browse files Browse the repository at this point in the history
  • Loading branch information
BHSDuncan authored and StraToN committed May 11, 2022
1 parent c9c7cd2 commit 8594779
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/escoria-core/game/core-scripts/esc/commands/wait.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 8594779

Please sign in to comment.