Browse Source

Fixed value type check

pull/46/head
Anairkoen Schno 4 years ago
parent
commit
5f2d3309fd
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(); var il = dyn.GetILGenerator();
il.Emit(OpCodes.Ldarg_0); il.Emit(OpCodes.Ldarg_0);
if (!typeof(U).IsValueType)
if (!typeof(T).IsValueType)
il.Emit(OpCodes.Ldind_Ref); il.Emit(OpCodes.Ldind_Ref);
il.Emit(OpCodes.Ldflda, field); il.Emit(OpCodes.Ldflda, field);
il.Emit(OpCodes.Ret); il.Emit(OpCodes.Ret);


Loading…
Cancel
Save