Skip to content

Commit ba0e8e1

Browse files
committed
Fixed #3
1 parent 98e69b4 commit ba0e8e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mono.Cecil.Inject/InjectionDefinition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Injection has {injectMethod.Parameters.Count
122122
"Supposed to receive local references, but the provided local variable index/indices do not exist in the target method!");
123123
Assert(
124124
injectMethod.Parameters.Slice(prefixCount, localsCount)
125-
.Select((p, i) => new {param = p, index = i})
125+
.Select((p, i) => new {param = p, index = localVarIDs[i]})
126126
.All(
127127
t =>
128128
t.param.ParameterType.IsByReference

0 commit comments

Comments
 (0)