From 5f2d3309fd99ab511f920274ace1318d08456aa1 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Sun, 12 Jan 2020 01:35:52 -0600 Subject: [PATCH] Fixed value type check --- IPA.Loader/Utilities/Accessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPA.Loader/Utilities/Accessor.cs b/IPA.Loader/Utilities/Accessor.cs index dba9e434..67f7270a 100644 --- a/IPA.Loader/Utilities/Accessor.cs +++ b/IPA.Loader/Utilities/Accessor.cs @@ -36,7 +36,7 @@ namespace IPA.Utilities var il = dyn.GetILGenerator(); il.Emit(OpCodes.Ldarg_0); - if (!typeof(U).IsValueType) + if (!typeof(T).IsValueType) il.Emit(OpCodes.Ldind_Ref); il.Emit(OpCodes.Ldflda, field); il.Emit(OpCodes.Ret);