Browse Source

Fixed value type check

4.0.0-beta
Anairkoen Schno 4 years ago
parent
commit
8ed65689a2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      IPA.Loader/Utilities/Accessor.cs

+ 1
- 1
IPA.Loader/Utilities/Accessor.cs View File

@ -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);


Loading…
Cancel
Save