From ddf7ee2d4beaf69b095b9c88586000cbbcff762b Mon Sep 17 00:00:00 2001 From: Perfare Date: Fri, 22 Apr 2022 22:05:31 +0800 Subject: [PATCH] Fixed #604 --- Il2CppDumper/Utils/DummyAssemblyGenerator.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Il2CppDumper/Utils/DummyAssemblyGenerator.cs b/Il2CppDumper/Utils/DummyAssemblyGenerator.cs index 3bcb4c1..987b713 100644 --- a/Il2CppDumper/Utils/DummyAssemblyGenerator.cs +++ b/Il2CppDumper/Utils/DummyAssemblyGenerator.cs @@ -666,14 +666,14 @@ namespace Il2CppDumper private CustomAttributeArgument CreateCustomAttributeArgument(TypeReference typeReference, BlobValue blobValue, MemberReference memberReference) { var val = blobValue.Value; - if (val == null) - { - return new CustomAttributeArgument(typeReference, val); - } - else if (typeReference.FullName == "System.Object") + if (typeReference.FullName == "System.Object") { val = new CustomAttributeArgument(GetBlobValueTypeReference(blobValue, memberReference), val); } + else if (val == null) + { + return new CustomAttributeArgument(typeReference, val); + } else if (typeReference is ArrayType arrayType) { var arrayVal = (BlobValue[])val;