Skip to content

Commit

Permalink
Fixed instruction creation code breaking for multiple instructions.
Browse files Browse the repository at this point in the history
If it ain't First.First it breaks. :')
  • Loading branch information
0megaD authored Apr 25, 2017
1 parent a0be268 commit 875d0f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnpatch.script/Script.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 127,7 @@ private void BuildTarget()
{
if (instruction.First != null && instruction.First.Value<string>() != "")
target.Instruction =
Instruction.Create((OpCode)GetInstructionField(instruction.First.ToString()).GetValue(this),
Instruction.Create((OpCode)GetInstructionField(instruction.First.First.ToString()).GetValue(this),
instruction.Last.Last.Value<dynamic>());
else
target.Instruction =
Expand Down

0 comments on commit 875d0f9

Please sign in to comment.