mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed GetMethodByName for methods in conditional extensions
This commit is contained in:
parent
485316385b
commit
48571d374f
1 changed files with 7 additions and 3 deletions
|
@ -10830,7 +10830,11 @@ BfModuleMethodInstance BfModule::GetMethodByName(BfTypeInstance* typeInstance, c
|
||||||
if ((methodDef->mMethodType != BfMethodType_Mixin) &&
|
if ((methodDef->mMethodType != BfMethodType_Mixin) &&
|
||||||
(methodDef->mGenericParams.size() == 0) &&
|
(methodDef->mGenericParams.size() == 0) &&
|
||||||
((paramCount == -1) || (paramCount == (int)methodDef->mParams.size())))
|
((paramCount == -1) || (paramCount == (int)methodDef->mParams.size())))
|
||||||
return GetMethodInstanceAtIdx(typeInstance, methodDef->mIdx);
|
{
|
||||||
|
auto moduleMethodInstance = GetMethodInstanceAtIdx(typeInstance, methodDef->mIdx);
|
||||||
|
if (moduleMethodInstance)
|
||||||
|
return moduleMethodInstance;
|
||||||
|
}
|
||||||
methodDef = methodDef->mNextWithSameName;
|
methodDef = methodDef->mNextWithSameName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue