Fixed IsDerived matching, dont match base System.Object class when looking for base classes

This commit is contained in:
Cj 2024-06-21 14:48:13 -04:00
parent eb8dc10330
commit 9b68b4e293

View File

@ -95,6 +95,10 @@ internal static class TypeDefExtensions
if (type.BaseType is not null && (bool)parms.IsDerived is true)
{
if (type.BaseType.Name.Contains("Object")) { return EMatchResult.NoMatch; }
Logger.Log($"Match {type.Name} : {type.BaseType}", ConsoleColor.Red);
score.Score++;
return EMatchResult.Match;
}