Skip to content

Commit

Permalink
base代理应该考虑父类方法是抽象的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Mar 20, 2018
1 parent 0b2a49e commit 64b28a6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/XLua/Src/Editor/Hotfix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down
Binary file modified Tools/XLuaHotfixInject.exe
Binary file not shown.
Binary file modified Tools/XLuaHotfixInject.pdb
Binary file not shown.

0 comments on commit 64b28a6

Please sign in to comment.