Skip to content

Commit

Permalink
Fix optional parameters for commands
Browse files Browse the repository at this point in the history
  • Loading branch information
spirifoxy committed May 24, 2024
1 parent d6a2185 commit a089f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/YarnSpinner-Godot/Runtime/Commands/ActionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ public static object[] ParseArgs(
}
for (int i = count; i < finalArgs.Length; i++)
{
finalArgs[i] = Type.Missing;
finalArgs[i] = (parameters[i].HasDefaultValue ? parameters[i].DefaultValue : Type.Missing) ?? Type.Missing;
}
return finalArgs;
}
Expand Down

0 comments on commit a089f91

Please sign in to comment.