From 9d16122d1a1e8a9e3c02433f7f6a7d000ebea1d6 Mon Sep 17 00:00:00 2001 From: Duncan Brown Date: Sat, 5 Feb 2022 13:08:20 -0500 Subject: [PATCH] Also need this here. --- addons/escoria-core/game/core-scripts/esc_item.gd | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/addons/escoria-core/game/core-scripts/esc_item.gd b/addons/escoria-core/game/core-scripts/esc_item.gd index cca3a4f6..65b72347 100644 --- a/addons/escoria-core/game/core-scripts/esc_item.gd +++ b/addons/escoria-core/game/core-scripts/esc_item.gd @@ -466,9 +466,10 @@ func start_talking(): # Stop playing the talking animation func stop_talking(): - if get_animation_player() and \ - _movable.last_dir >= 0 and \ - _movable.last_dir <= animations.idles.size(): + if animations.speaks.size() > 0 \ + and get_animation_player() \ + and _movable.last_dir >= 0 \ + and _movable.last_dir < animations.speaks.size(): if get_animation_player().is_playing(): get_animation_player().stop() get_animation_player().play(