From 9c6afa813438a6f52f4c812a50be26285f689488 Mon Sep 17 00:00:00 2001 From: disarray2077 <86157825+disarray2077@users.noreply.github.com> Date: Sat, 26 Mar 2022 11:41:53 -0300 Subject: [PATCH] Fix TypeOf TypeCode in AttributeInfo.bf --- BeefLibs/corlib/src/Reflection/AttributeInfo.bf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BeefLibs/corlib/src/Reflection/AttributeInfo.bf b/BeefLibs/corlib/src/Reflection/AttributeInfo.bf index fb8eb572..4bbed483 100644 --- a/BeefLibs/corlib/src/Reflection/AttributeInfo.bf +++ b/BeefLibs/corlib/src/Reflection/AttributeInfo.bf @@ -189,7 +189,7 @@ namespace System.Reflection .Double: let attrData = AttributeInfo.Decode!(mData); args[argIdx] = Variant.Create(attrData); - case (TypeCode)typeof(TypeCode).MaxValue + 8: //BfConstType_TypeOf + case (TypeCode)typeof(TypeCode).MaxValue + 9: //BfConstType_TypeOf let argTypeId = AttributeInfo.Decode!(mData); args[argIdx] = Variant.Create(Type.[Friend]GetType((.)argTypeId)); case (TypeCode)255: @@ -463,7 +463,7 @@ namespace System.Reflection .Double: let attrData = AttributeInfo.Decode!(mData); args[argIdx] = scope:: box attrData; - case (TypeCode)typeof(TypeCode).MaxValue + 8: //BfConstType_TypeOf + case (TypeCode)typeof(TypeCode).MaxValue + 9: //BfConstType_TypeOf let argTypeId = AttributeInfo.Decode!(mData); args[argIdx] = Type.[Friend]GetType((.)argTypeId); case (TypeCode)255: