Explorar o código

Skip inheritance check for unresolved types

ghorsington %!s(int64=5) %!d(string=hai) anos
pai
achega
0d1049c56c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      BepInEx/Utility.cs

+ 1 - 1
BepInEx/Utility.cs

@@ -132,7 +132,7 @@ namespace BepInEx
 		{
 			if (self.FullName == td.FullName)
 				return true;
-			return self.FullName != "System.Object" && (self.BaseType?.Resolve().IsSubtypeOf(td) ?? false);
+			return self.FullName != "System.Object" && (self.BaseType?.Resolve()?.IsSubtypeOf(td) ?? false);
 		}
 
 		/// <summary>