diff --git a/Assets/Fungus/FungusScript/Editor/CommandListAdaptor.cs b/Assets/Fungus/FungusScript/Editor/CommandListAdaptor.cs index 0163a24f..59818639 100644 --- a/Assets/Fungus/FungusScript/Editor/CommandListAdaptor.cs +++ b/Assets/Fungus/FungusScript/Editor/CommandListAdaptor.cs @@ -94,7 +94,7 @@ namespace Fungus return null; } - Command newCommand = Undo.AddComponent(fungusScript.gameObject) as Command; + Command newCommand = Undo.AddComponent(sequence.gameObject) as Command; fungusScript.selectedCommand = newCommand; return newCommand;