mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed infinite loop in DoMethodDeclaration
This commit is contained in:
parent
7772041ea1
commit
70680fdf39
1 changed files with 9 additions and 0 deletions
|
@ -22767,7 +22767,10 @@ void BfModule::DoMethodDeclaration(BfMethodDeclaration* methodDeclaration, bool
|
||||||
while (checkMethod != NULL)
|
while (checkMethod != NULL)
|
||||||
{
|
{
|
||||||
if (checkMethod->mMethodDeclaration == NULL)
|
if (checkMethod->mMethodDeclaration == NULL)
|
||||||
|
{
|
||||||
|
checkMethod = checkMethod->mNextWithSameName;
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (baseType->mMethodInstanceGroups.size() == 0)
|
if (baseType->mMethodInstanceGroups.size() == 0)
|
||||||
{
|
{
|
||||||
|
@ -22776,9 +22779,15 @@ void BfModule::DoMethodDeclaration(BfMethodDeclaration* methodDeclaration, bool
|
||||||
}
|
}
|
||||||
|
|
||||||
if (checkMethod == methodDef)
|
if (checkMethod == methodDef)
|
||||||
|
{
|
||||||
|
checkMethod = checkMethod->mNextWithSameName;
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
if (checkMethod->mName != methodDef->mName)
|
if (checkMethod->mName != methodDef->mName)
|
||||||
|
{
|
||||||
|
checkMethod = checkMethod->mNextWithSameName;
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
auto checkMethodInstance = GetRawMethodInstanceAtIdx(baseType, checkMethod->mIdx);
|
auto checkMethodInstance = GetRawMethodInstanceAtIdx(baseType, checkMethod->mIdx);
|
||||||
if (checkMethodInstance != NULL)
|
if (checkMethodInstance != NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue