From 1f6e2a4106218dd0cc7f3a1216e83313a25d57e4 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Sat, 12 Feb 2011 23:07:00 +0100 Subject: [PATCH] Fixed assignments to static fields. --- ICSharpCode.Decompiler/Ast/AstMetodBodyBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ICSharpCode.Decompiler/Ast/AstMetodBodyBuilder.cs b/ICSharpCode.Decompiler/Ast/AstMetodBodyBuilder.cs index 468937b7c..12cc70149 100644 --- a/ICSharpCode.Decompiler/Ast/AstMetodBodyBuilder.cs +++ b/ICSharpCode.Decompiler/Ast/AstMetodBodyBuilder.cs @@ -612,7 +612,7 @@ namespace Decompiler return new AssignmentExpression( AstBuilder.ConvertType(((FieldReference)operand).DeclaringType) .Member(((FieldReference)operand).Name).WithAnnotation(operand), - arg2); + arg1); case Code.Ldflda: case Code.Ldsflda: throw new NotImplementedException(); case Code.Ldftn: throw new NotImplementedException();