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;