From 8403f8a62dda2977493f5aca04e20248458569bc Mon Sep 17 00:00:00 2001 From: Luke <17146677+LukeFZ@users.noreply.github.com> Date: Tue, 19 Nov 2024 00:13:26 +0100 Subject: [PATCH] Fix incorrect if condition in GetVTable causing them to all be empty --- Il2CppInspector.Common/Reflection/TypeInfo.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Il2CppInspector.Common/Reflection/TypeInfo.cs b/Il2CppInspector.Common/Reflection/TypeInfo.cs index 3067c40f..21ffe191 100644 --- a/Il2CppInspector.Common/Reflection/TypeInfo.cs +++ b/Il2CppInspector.Common/Reflection/TypeInfo.cs @@ -255,7 +255,7 @@ public MethodInfo[] GetAllMethods() { public PropertyInfo GetProperty(string name) => DeclaredProperties.FirstOrDefault(p => p.Name == name); public MethodBase[] GetVTable() { - if (!Definition.IsValid) { + if (Definition.IsValid) { MetadataUsage[] vt = Assembly.Model.Package.GetVTable(Definition); MethodBase[] res = new MethodBase[vt.Length]; for (int i = 0; i < vt.Length; i++) { @@ -1190,4 +1190,4 @@ public string GetTypeConstraintsString(Scope scope) { public override string ToString() => Name; } -} \ No newline at end of file +}