diff --git a/Assets/Fungus/Scripts/Commands/Call.cs b/Assets/Fungus/Scripts/Commands/Call.cs index a7ed151e..4edb68f7 100644 --- a/Assets/Fungus/Scripts/Commands/Call.cs +++ b/Assets/Fungus/Scripts/Commands/Call.cs @@ -37,7 +37,7 @@ namespace Fungus [Tooltip("Block to start executing")] [SerializeField] protected Block targetBlock; - [Tooltip("Label to start exeuction at. Takes priority over startIndex.")] + [Tooltip("Label to start execution at. Takes priority over startIndex.")] [SerializeField] protected StringData startLabel = new StringData(); [Tooltip("Command index to start executing")] @@ -75,9 +75,9 @@ namespace Fungus // Find the command index to start execution at int index = startIndex; - if (startLabel != "") + if (startLabel.Value != "") { - int labelIndex = targetBlock.GetLabelIndex(startLabel); + int labelIndex = targetBlock.GetLabelIndex(startLabel.Value); if (labelIndex != -1) { index = labelIndex;