From 5cdbb9cff95ca7fd1cb943ba848aa827103a9d96 Mon Sep 17 00:00:00 2001 From: shalliwell Date: Sun, 17 May 2020 10:21:22 +1000 Subject: [PATCH] Conversation variable match Don't try to do determine substitutions with an empty conversation --- Assets/Fungus/Scripts/Commands/Conversation.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Fungus/Scripts/Commands/Conversation.cs b/Assets/Fungus/Scripts/Commands/Conversation.cs index 0b084982..2ebcda97 100644 --- a/Assets/Fungus/Scripts/Commands/Conversation.cs +++ b/Assets/Fungus/Scripts/Commands/Conversation.cs @@ -81,7 +81,8 @@ namespace Fungus var f = GetFlowchart(); - f.DetermineSubstituteVariables(conversationText, referencedVariables); + if(!string.IsNullOrEmpty(conversationText.Value)) + f.DetermineSubstituteVariables(conversationText, referencedVariables); } #endif #endregion Editor caches