diff --git a/Assets/XLua/Src/Editor/Hotfix.cs b/Assets/XLua/Src/Editor/Hotfix.cs index 918bacc39..446ca05de 100644 --- a/Assets/XLua/Src/Editor/Hotfix.cs +++ b/Assets/XLua/Src/Editor/Hotfix.cs @@ -618,7 +618,7 @@ static MethodDefinition findOverride(TypeDefinition type, MethodReference vmetho { foreach (var method in type.Methods) { - if (method.Name == vmethod.Name && method.IsVirtual && isSameType(method.ReturnType, vmethod.ReturnType) && method.Parameters.Count == vmethod.Parameters.Count) + if (method.Name == vmethod.Name && method.IsVirtual && !method.IsAbstract && isSameType(method.ReturnType, vmethod.ReturnType) && method.Parameters.Count == vmethod.Parameters.Count) { bool isParamsMatch = true; for (int i = 0; i < method.Parameters.Count; i++) diff --git a/Tools/XLuaHotfixInject.exe b/Tools/XLuaHotfixInject.exe index 607b90802..19224da33 100644 Binary files a/Tools/XLuaHotfixInject.exe and b/Tools/XLuaHotfixInject.exe differ diff --git a/Tools/XLuaHotfixInject.pdb b/Tools/XLuaHotfixInject.pdb index 4d6308322..af3cbfcca 100644 Binary files a/Tools/XLuaHotfixInject.pdb and b/Tools/XLuaHotfixInject.pdb differ