Skip to content

Commit 71c84c3

Browse files
fix skipped argument bug
1 parent 9f7c8aa commit 71c84c3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Code/ContextSystem/Contexts/MethodContext.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public override TryAddTokenRes TryAddToken(BaseToken token)
3838
{
3939
Log.Debug($"'{Method.Name}' method is now receiving token '{token.RawRep}' ({token.GetType().AccurateName})");
4040

41-
if (Dispatcher.TryGetValueInfo(token, _providedArguments)
41+
if (Dispatcher.TryGetValueInfo(token, _providedArguments++)
4242
.HasErrored(out var error, out var possibleArgumentInfo))
4343
{
4444
return TryAddTokenRes.Error($"Value '{token.RawRep}' is not a valid argument: {error}");
@@ -50,7 +50,6 @@ public override TryAddTokenRes TryAddToken(BaseToken token)
5050
Log.Debug($"skeleton {argInfo.Name} {argInfo.ArgumentType} registered");
5151

5252
Method.Args.Add(argInfo);
53-
_providedArguments++;
5453
return TryAddTokenRes.Continue();
5554
}
5655

0 commit comments

Comments
 (0)