Model: Set ContainsGenericParameters correctly for arrays and pointers

This commit is contained in:
Katy Coe
2019-11-07 03:01:39 +01:00
parent 0d3634eea4
commit a22a4c1927

View File

@@ -346,6 +346,7 @@ namespace Il2CppInspector.Reflection {
Index = ElementType.Index;
Namespace = ElementType.Namespace;
Name = ElementType.Name;
ContainsGenericParameters = ElementType.ContainsGenericParameters;
IsArray = true;
arrayRank = descriptor.rank;
@@ -360,6 +361,7 @@ namespace Il2CppInspector.Reflection {
Index = ElementType.Index;
Namespace = ElementType.Namespace;
Name = ElementType.Name;
ContainsGenericParameters = ElementType.ContainsGenericParameters;
IsPointer = (pType.type == Il2CppTypeEnum.IL2CPP_TYPE_PTR);
IsArray = !IsPointer;