mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +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)
|
||||
{
|
||||
if (checkMethod->mMethodDeclaration == NULL)
|
||||
{
|
||||
checkMethod = checkMethod->mNextWithSameName;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (baseType->mMethodInstanceGroups.size() == 0)
|
||||
{
|
||||
|
@ -22776,9 +22779,15 @@ void BfModule::DoMethodDeclaration(BfMethodDeclaration* methodDeclaration, bool
|
|||
}
|
||||
|
||||
if (checkMethod == methodDef)
|
||||
{
|
||||
checkMethod = checkMethod->mNextWithSameName;
|
||||
continue;
|
||||
}
|
||||
if (checkMethod->mName != methodDef->mName)
|
||||
{
|
||||
checkMethod = checkMethod->mNextWithSameName;
|
||||
continue;
|
||||
}
|
||||
|
||||
auto checkMethodInstance = GetRawMethodInstanceAtIdx(baseType, checkMethod->mIdx);
|
||||
if (checkMethodInstance != NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue