From e4bd8008ea52e9a29fca82cffd2e56abd6805293 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Fri, 14 Jan 2022 22:10:41 -0800 Subject: [PATCH] wtf --- QSBTests/MessageTests.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/QSBTests/MessageTests.cs b/QSBTests/MessageTests.cs index 3c1c65ca..5f3b2532 100644 --- a/QSBTests/MessageTests.cs +++ b/QSBTests/MessageTests.cs @@ -29,9 +29,7 @@ namespace QSBTests var fields = type.GetFields(Util.Flags) .Select(x => module.ImportReference(x)); - var constructors = type.GetConstructors(Util.Flags); - var constructor_ = constructors.Length > 1 ? constructors.Single(x => x.GetParameters().Length != 0) : constructors[0]; - var constructor = module.ImportReference(constructor_).Resolve(); + var constructor = module.ImportReference(type.GetConstructors(Util.Flags).Single()).Resolve(); var serialize = module.ImportReference(type.GetMethod("Serialize", Util.Flags)).Resolve(); var deserialize = module.ImportReference(type.GetMethod("Deserialize", Util.Flags)).Resolve();