From ba6450bb6e2531f3d4ad402824a5c1da06109152 Mon Sep 17 00:00:00 2001 From: Cake <65981767+CakeVR@users.noreply.github.com> Date: Tue, 5 Mar 2024 12:08:25 +0100 Subject: [PATCH] Fix getting wrong speaker path. --- addons/dialogic/Modules/Text/subsystem_text.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/dialogic/Modules/Text/subsystem_text.gd b/addons/dialogic/Modules/Text/subsystem_text.gd index 6c3696b2f..b4584dfa0 100644 --- a/addons/dialogic/Modules/Text/subsystem_text.gd +++ b/addons/dialogic/Modules/Text/subsystem_text.gd @@ -163,7 +163,7 @@ func _on_dialog_text_finished() -> void: ## If a name changes, the [signal speaker_updated] signal is emitted. func update_name_label(character:DialogicCharacter) -> void: var character_path := character.resource_path if character else "" - var current_character_path: String = dialogic.current_state_info.get('character', "") + var current_character_path: String = dialogic.current_state_info.get("speaker", "") if character_path != current_character_path: dialogic.current_state_info['speaker'] = character_path