From 166414098ac265affbe60178559bd745a6217454 Mon Sep 17 00:00:00 2001 From: Balloonpopper Date: Sat, 19 Feb 2022 14:08:29 +1100 Subject: [PATCH] fix: animations doesnt have a speaks parameter when it is null --- addons/escoria-core/game/core-scripts/esc_item.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/escoria-core/game/core-scripts/esc_item.gd b/addons/escoria-core/game/core-scripts/esc_item.gd index 5639c0d1..482bcf9d 100644 --- a/addons/escoria-core/game/core-scripts/esc_item.gd +++ b/addons/escoria-core/game/core-scripts/esc_item.gd @@ -453,7 +453,7 @@ func turn_to(object: Node, wait: float = 0.0): # Play the talking animation func start_talking(): # Only start the speaking animation if we actually have them setup - if animations.speaks != null \ + if animations != null \ and animations.speaks.size() > 0 \ and get_animation_player() \ and _movable.last_dir >= 0 \ @@ -467,7 +467,7 @@ func start_talking(): # Stop playing the talking animation func stop_talking(): - if animations.speaks != null \ + if animations != null \ and animations.speaks.size() > 0 \ and get_animation_player() \ and _movable.last_dir >= 0 \